-
Notifications
You must be signed in to change notification settings - Fork 7
ℹ 「wdm」: Failed to compile. #21
Copy link
Copy link
Open
Description
Hello I have a problem with building the app.
when I access the app from http://localhost:3000/ I see an empty page.
nodejs : 10.19.0
yarn : 1.22.10
webpack : 4.30.0
here's the output of yarn install and yarn watch:
- yarn install :
selharem@selharem-Vostro:~/React$ yarn install
yarn install v1.22.10
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 0.15s.
- yarn watch :
yarn run v1.22.10
$ webpack-dev-server --mode development
ℹ 「wds」: Project is running at http://localhost:3000/
ℹ 「wds」: webpack output is served from http://localhost:3000/dist/
ℹ 「wds」: Content not from webpack is served from /home/selharem/React/Wellness-Wheel/public/
ℹ 「wds」: 404s will fallback to /index.html
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
✖ 「wdm」: Hash: 77a50b87a5865aa15eb4
Version: webpack 4.29.6
Time: 5401ms
Built at: 04/01/2021 11:37:55 AM
Asset Size Chunks Chunk Names
bundle.js 1.69 MiB main [emitted] main
Entrypoint main = bundle.js
[0] multi (webpack)-dev-server/client?http://localhost:3000 (webpack)/hot/dev-server.js ./src/index.js 52 bytes {main} [built]
[./node_modules/loglevel/lib/loglevel.js] 7.68 KiB {main} [built]
[./node_modules/querystring-es3/index.js] 127 bytes {main} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {main} [built]
[./node_modules/react-router-dom/es/index.js] 1010 bytes {main} [built]
[./node_modules/react/index.js] 190 bytes {main} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {main} [built]
[./node_modules/url/url.js] 22.8 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:3000] (webpack)-dev-server/client?http://localhost:3000 8.1 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.59 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 KiB {main} [built]
[./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 KiB {main} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 75 bytes {main} [built]
[./src/index.js] 520 bytes {main} [built]
+ 107 hidden modules
ERROR in ./src/components/Home.js
Module not found: Error: Can't resolve '../../secret.js' in '/home/selharem/React/Wellness-Wheel/src/components'
@ ./src/components/Home.js 18:14-40
@ ./src/components/Router.js
@ ./src/components/App.js
@ ./src/index.js
@ multi (webpack)-dev-server/client?http://localhost:3000 (webpack)/hot/dev-server.js ./src/index.js
ℹ 「wdm」: Failed to compile.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels