작성
·
636
0
답변 9
1
0
0
0
ERROR in app
Module not found: Error: Can't resolve './client' in '/Users/alice/project/test'
resolve './client' in '/Users/alice/project/test'
using description file: /Users/alice/project/test/package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: /Users/alice/project/test/package.json (relative path: ./client)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/alice/project/test/client doesn't exist
js
Field 'browser' doesn't contain a valid alias configuration
/Users/alice/project/test/clientjs doesn't exist
jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/alice/project/test/clientjsx doesn't exist
as directory
/Users/alice/project/test/client doesn't exist
wordrelay-setting (webpack 5.65.0) compiled with 1 error in 70 ms
alice@MacBook-Pro test %
npx webpack 했을때 오류나네요,,
0
0
아죄송합니다 ..
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "@babel-loader": Tags may not have any characters that encodeURIComponent encodes.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/alice/.npm/_logs/2021-12-21T02_01_16_181Z-debug.log
alice@MacBook-Pro test % npm i -D @babel-loader
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "@babel-loader": Tags may not have any characters that encodeURIComponent encodes.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/alice/.npm/_logs/2021-12-21T02_06_35_284Z-debug.log
0
Uncaught SyntaxError: app.js:1
Cannot use import statement outside a module
index.html:40 Live reload enabled.개발자도구에선 이 에러가뜨고 , 웹팩 강좌이후 안됩니다ㅜㅜ
버전 문제인데요. 제 깃헙 버전과 맞춘 후 npm i로 설치해서 다시 실행해보세요.
https://github.com/ZeroCho/react-webgame/blob/master/2.%EB%81%9D%EB%A7%90%EC%9E%87%EA%B8%B0/package.json
0
index부분은 아닌거같은데
https://github.com/ZeroCho/react-webgame/blob/master/2.%EB%81%9D%EB%A7%90%EC%9E%87%EA%B8%B0
여기 파일들 전부 복사해서 쓰세요. 오타가 있는게 확실한 데 찾지를 못하겠습니다.