Skip to content

Conversation

denysvitali
Copy link

Error: Cannot find module 'es6-module-transpiler/node_modules/recast'

I fixed by requiring the module recast without the es6-module-transpiler path and haven't found any problem at all.
Was it really necessary to bind the module to the local path? And what about using __dirname or any package.json trick?

@sicdigital
Copy link

I did this in all my builds at least 2 months ago with no adverse affects, someone merge this in

@kajmagnus79
Copy link

kajmagnus79 commented Jun 10, 2016

I have the same problem, encounter the same error message. On a Windows 10 laptop.

I've now manually applied this patch (the var recast = require('recast'); line only), to be able to run the transpiler on this computer. Seems to work fine (this far).

B.t.w., esnext/es6-module-transpiler declares itself deprecated, says "This project been deprecated in favor of Babel & Rollup" (https://github.com/esnext/es6-module-transpiler ) — perhaps what I should do, then, isn't to wait for this PR to get merged? But rather try to switch to gulp-babel?

@sicdigital
Copy link

Gulp-Babel is also deprecated, I switched over to Browserify with the babelify transform. It works great.

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

Successfully merging this pull request may close these issues.

3 participants