ngokevin / aframe-react-boilerplate

:sunglasses: Boilerplate for building virtual reality (VR) experiences with A-Frame and React using aframe-react.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
375 stars 156 forks source link

Updated NPM and Webpack configuration to overcome installation errors #25

Open ltfschoen opened 7 years ago

ltfschoen commented 7 years ago

Updated NPM dependencies and Webpack config to so can just run npm install without encountering installation any major errors that I encountered such as the following:

$ npm install
npm WARN aframe-react@3.4.0 requires a peer of react@* but none was installed.
npm WARN aframe-react@3.4.0 requires a peer of react-dom@* but none was installed.

$ npm run serve
sh: webpack-dev-server: command not found

$ npm install -g webpack-dev-server
npm WARN webpack-dev-server@1.16.2 requires a peer of webpack@>=1.3.0 <3 but none was installed.
npm WARN webpack-dev-middleware@1.8.4 requires a peer of webpack@1 || ^2.1.0-beta but none was installed.
...
Error: Cannot find module 'webpack'
Error: Cannot find module 'babel-polyfill'
ERROR in multi main
Module not found: Error: Cannot resolve module 'babel' 
...
ERROR in ./src/js/app.js
Module not found: Error: Cannot resolve module 'aframe'
...
reidblomquist commented 7 years ago

+1 - just updated my fork to latest master and tried running yarn and am running into the peer dependency errors (able to run serve - but yeh...)

update: just merged @ltfschoen's branch with these changes and ran with yarn - everything works fine! contemplating opening a pr that uses webpack-dashboard for dev if that sounds like a nicety maintainers would like.

nobodysfool commented 7 years ago

No