WhitestormJS / whitestorm-app-boilerplate

[WIP] WhitestormJS 2 App boilerplate
http://whs-boilerplate-app.surge.sh/
MIT License
45 stars 17 forks source link

don't work out of the box #12

Closed stephanedemotte closed 7 years ago

stephanedemotte commented 7 years ago

Hi !

I just want try whitestorm, but the boilerplate don't work out of the box. I download the project yarn and npm run startand bim! error: module not found bla bla

The doc is missing to set up whitestorm with webpack.

We can check the boilerplate, but an explanation can be very usefull.

Thanks !

ERROR in ./app/app.js
Module not found: Error: Can't resolve '@whs:app' in '/Users/hirako/dev/whitestorm-app-boilerplate/app'
 @ ./app/app.js 4:0-85
 @ multi (webpack)-dev-server/client?http://localhost:8080 ./app/app.js

ERROR in ./app/app.js
Module not found: Error: Can't resolve '@whs:controls/orbit' in '/Users/hirako/dev/whitestorm-app-boilerplate/app'
 @ ./app/app.js 6:0-50
 @ multi (webpack)-dev-server/client?http://localhost:8080 ./app/app.js

ERROR in ./~/whs/src/polyfill.js
Module not found: Error: Can't resolve 'present' in '/Users/hirako/dev/whitestorm-app-boilerplate/node_modules/whs/src'
 @ ./~/whs/src/polyfill.js 1:0-30
 @ ./~/whs/src/core/App.js
 @ ./app/app.js
 @ multi (webpack)-dev-server/client?http://localhost:8080 ./app/app.js
webpack: Failed to compile.
hirako2000 commented 7 years ago

Hey @stephanedemotte , thanks for reporting the issue. Just fixed the missing dep and simplified imports a bit.

Can you update and try again?

# update first, git pull or whatever
npm install
npm run start
stephanedemotte commented 7 years ago

yeah fixed !

Thanks !