I just installed shader-school via npm install -g shader-school to give it a whirl, but ran into a problem when trying to use it. After I click a "lesson" link in the browser it dumps the following stack trace:
WORKSHOP URL: http://localhost:12492
200 16ms 299B /
200 747ms 65.01KB /index.js ➞ /usr/local/lib/node_modules/shader-school/node_modules/browserify ./index.js -d
200 1ms 282B /
/usr/local/lib/node_modules/shader-school/exercises/intro-1/shaders/vertex.glsl
fs.js:1619
options = Object.create(options || {});
^
TypeError: Object prototype may only be an Object or null: utf8
at Function.create (native)
at new ReadStream (fs.js:1619:20)
at Object.fs.createReadStream (fs.js:1608:10)
at bundle (/usr/local/lib/node_modules/shader-school/node_modules/glslify-live/node_modules/glslify-bundle/index.js:41:17)
at submit (/usr/local/lib/node_modules/shader-school/node_modules/glslify-live/server.js:101:5)
at Server.handler (/usr/local/lib/node_modules/shader-school/node_modules/glslify-live/server.js:85:9)
at defaultresponse (/usr/local/lib/node_modules/shader-school/node_modules/glslify-live/node_modules/sse-stream/lib/server.js:63:20)
at Server.on_request (/usr/local/lib/node_modules/shader-school/node_modules/glslify-live/node_modules/sse-stream/lib/server.js:55:14)
at Server.<anonymous> (/usr/local/lib/node_modules/shader-school/node_modules/glslify-live/server.js:71:20)
at emitTwo (events.js:87:13)
I tried a few different "lesson" links and it seems to be the case for all of them.
I just installed shader-school via
npm install -g shader-school
to give it a whirl, but ran into a problem when trying to use it. After I click a "lesson" link in the browser it dumps the following stack trace:I tried a few different "lesson" links and it seems to be the case for all of them.
One way to address this one: https://github.com/hughsk/glslify-bundle/pull/1
:beers: