glslify / glslify-promise

A Promise wrapper for glslify, providing a consistent interface between both Node.js and browserify.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module 'node_modules/glslify-promise/wrapper'

vorg opened this issue · comments

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

commented

What's the value of the first origin?

It resolves to node_modules/glslify-promise/wrapper that the error complains about

@vorg I think 5c4459f fixes this issue – could you give it another shot and let me know? :)

@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

@dfcreative any luck with 1.0.2? :)

@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.