Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

경북대 FE_안희정 6주차 과제 재제출 #123

Open
wants to merge 29 commits into
base: anheejeong
Choose a base branch
from

Conversation

anheejeong
Copy link

현재 main 브랜치로 배포가 되어있는데, 오류가 여러가지 발생합니다.

vercel

Module not found: Error: Can't resolve '@/pages/Admin' in '/vercel/path0/src/routes'

Route URL 수정 커밋에서부터 오류가 나는데, 이유를 모르겠습니다..🥲

aws

var stripAnsi = require('strip-ansi');
^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/macbookpro/Desktop/kakaoTechCampus/STEP02-클론강의/react-product-login2/node_modules/strip-ansi/index.js from /Users/macbookpro/Desktop/kakaoTechCampus/STEP02-클론강의/react-product-login2/node_modules/react-scripts/node_modules/react-dev-utils/FileSizeReporter.js not supported.
Instead change the require of index.js in /Users/macbookpro/Desktop/kakaoTechCampus/STEP02-클론강의/react-product-login2/node_modules/react-scripts/node_modules/react-dev-utils/FileSizeReporter.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/Users/macbookpro/Desktop/kakaoTechCampus/STEP02-클론강의/react-product-login2/node_modules/react-scripts/node_modules/react-dev-utils/FileSizeReporter.js:15:17) {
code: 'ERR_REQUIRE_ESM'
}

Node.js v20.16.0
error Command failed with exit code 1.

node version lts로 변경, react-dev-utils과 strip-ansi 호환성 맞춤, craco 설정 수정으로 시도해보았지만 여전히 같은 오류가 발생합니다. 그래서 전체 코드 배포가 되지 않습니다..

그 전까지의 커밋은

http://heejeong-react-deploy-9lcyzphrs-anheejeongs-projects.vercel.app/

링크에 배포가 되어있지만, 포인트와 주문하기 등의 수정은 해당 커밋 이후에 커밋된 것이라 반영되어있지 않습니다.

vercel의 경우 https로 배포가 되어 있어, 수동으로 http로 바꿔주어야 작동합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants