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

Doesn't work: "mat4 is undefined" (FF) / "Cannot read property 'perspective' of undefined" (Chromium) #132

Open
zvyn opened this issue Jun 16, 2015 · 2 comments

Comments

@zvyn
Copy link

zvyn commented Jun 16, 2015

After installing shader-school using npm (see below) I get errors in Firefox and Chromium:
Firefox (version 38.0.5) tells me that "mat4 is undifined" while Chromium (version 43.0.2357.125) "Cannot read property 'perspective' of undefined".
The errors appear in a red rectangle on the right bottom as soon as one of the lessons is loaded (e.g. http://localhost:12492/intro-0).
I only see a black screen and the introduction (as soon as I click the button in the top left corner) plus a folder and a home button. Solving an exercise and clicking verify does not work (I'm pretty confident I solved the first one right).
The output after a request using Firefox:

200    2ms       282B  /
200 3651ms     8.18MB  /index.js ➞ /home/milan/Code/shader-school/node_modules/shader-school/node_modules/browserify ./index.js -d -t /home/milan/Code/shader-school/node_modules/shader-school/node_modules/brfs/index.js -t [ /home/milan/Code/shader-school/node_modules/shader-school/node_modules/envify/index.js --dirname intro-0 --file_hello_glsl /home/milan/Code/shader-school/00-intro-0/hello.glsl ] -t /home/milan/Code/shader-school/node_modules/shader-school/node_modules/glslify-live/transform.js -t /home/milan/Code/shader-school/node_modules/shader-school/node_modules/glslify/index.js

I istalled shader-school using the following command sequence: cd */Code/; npm install -g shader-school --prefix shader-school; mv shader-school/lib/ shader-school/; ln -s shader-school/node_modules/shader-school/index.js .local/bin/

@nkint
Copy link

nkint commented Jul 7, 2015

me too. any news on that?

@nkint
Copy link

nkint commented Jul 7, 2015

I have reinstalled everything and now it works ok

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