Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependencies when used from NPM #155

Open
mflux opened this issue Aug 11, 2016 · 1 comment
Open

Missing dependencies when used from NPM #155

mflux opened this issue Aug 11, 2016 · 1 comment

Comments

@mflux
Copy link

mflux commented Aug 11, 2016

Here are my steps to get the demos running:

npm install webvr-boilerplate
cd node_modules/
cd webvr-boilerplate/
python -m SimpleHTTPServer 

I assume there's no build? there's no grunt/gulp, absolutely nothing in readme.md that hints at building.

In chrome, errors:

GET http://localhost:8000/node_modules/es6-promise/dist/es6-promise.js
(index):73 GET http://localhost:8000/node_modules/three/three.js
(index):78 GET http://localhost:8000/node_modules/three/examples/js/controls/VRControls.js
(index):83 GET http://localhost:8000/node_modules/three/examples/js/effects/VREffect.js
(index):99 Uncaught ReferenceError: THREE is not defined(…)

Alright so THREE is missing and some other things. I go back into the index.html folder and

npm install

[email protected] node_modules\watchify
[email protected] node_modules\browserify
[email protected] node_modules\derequire

GET http://localhost:8000/node_modules/es6-promise/dist/es6-promise.js
(index):73 GET http://localhost:8000/node_modules/three/three.js
(index):78 GET http://localhost:8000/node_modules/three/examples/js/controls/VRControls.js
(index):83 GET http://localhost:8000/node_modules/three/examples/js/effects/VREffect.js
(index):99 Uncaught ReferenceError: THREE is not defined(…)

Same errors. Still missing THREE.

npm install --save three

GET http://localhost:8000/node_modules/es6-promise/dist/es6-promise.js
(index):73 GET http://localhost:8000/node_modules/three/three.js
VRControls.js:6 Uncaught ReferenceError: THREE is not defined(…)(anonymous function) @ VRControls.js:6
VREffect.js:12 Uncaught ReferenceError: THREE is not defined(…)(anonymous function) @ VREffect.js:12
(index):99 Uncaught ReferenceError: THREE is not defined(…)

Module issues.

I'm missing something obvious that's undocumented. Please help?

@borismus
Copy link
Owner

borismus commented Aug 16, 2016

Hi Michael, there actually is a build step. You can run npm build. Although the build is checked in, as are all of the node dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants