Cannot find module 'node_modules/glslify-promise/wrapper'
vorg opened this issue · comments
Marcin Ignac commented
I'm getting error when trying to use browserify@10.2.4
Error: Cannot find module 'node_modules/glslify-promise/wrapper'
replacing https://github.com/stackgl/glslify-promise/blob/master/transform.js#L27
const origin = path.relative(path.dirname(filename), __dirname)
with
const origin = __dirname;
helps
Yosh commented
What's the value of the first origin
?
Deleted user commented
It resolves to node_modules/glslify-promise/wrapper
that the error complains about
Hugh Kennedy commented
Dmitry Iv. commented
@hughsk Having the same issue.
Error: Cannot find module './..
ode_modulesglslify-promise/wrapper' from 'C:\Users\dmitry\Dropbox\Projects\nogl-shader-output\test'
Value of origin: ./..\node_modules\glslify-promise
Hugh Kennedy commented
@dfcreative any luck with 1.0.2
? :)
Dmitry Iv. commented
@hughsk thanks, now it works.
But I tried to run tests, and got:
> glslify-promise@1.0.2 test C:\Users\dmitry\Dropbox\Projects\glslify-promise
> node test | tap-spec
node: simple test
√ output provided
√ output is a string
√ output contains imported noise function
transform: simple test
× Error: Cannot find module 'C:UsersdmitryDropboxProjectsglslify-promisewrapper.js' from 'C:\Users\dmitry\Dropbox\Projects\glslify-promise\test\fixtures'
× test exited without ending
npm ERR! Test failed. See above for more details.