mkungla / webxr-webpack-boilerplate

Starter Kit for building rich, immersive WebXR prototype projects (featuring A-Frame) PWA with Webpack and SASS
https://mkungla.github.io/webxr-webpack-boilerplate/
MIT License
54 stars 21 forks source link

ERROR in Entry module not found #21

Closed droid001 closed 6 years ago

droid001 commented 6 years ago

When starting the development process the following error is thrown:

ERROR in Entry module not found: Error: Can't resolve './src' in '/Users/me/Development/webxr-webpack-boilerplate'

preceeded with the following warning: WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/

The project was cloned and setup according to First run

Expected behavior
Default site should show in localhost:9000

Please complete the following information

mkungla commented 6 years ago

See my comment here https://github.com/digaverse/webxr-webpack-boilerplate/issues/20#issuecomment-421336725

droid001 commented 6 years ago

I've followed the first run instructions this time. :)
Ultimately I got things working by updating yarn from v1.9.4 to v1.10.1 with npm install -g yarn. Then I updated all the packages with yarn upgrade. Doubt the latter was necessary though. Along the way I messed up the url omitting https which is of course necessary for the Service Workers.

The problem I had before was that versions after 0.9.10 didn't work by following the instructions. To fix the first error I stripped the content of src/js/app.js and placed it into a new src/index.js which is webpack's default entry point. Where as the mode warning can be taken care of by adding the CLI --mode=development into the start command in package.json. These steps aren't necessary any longer though.