speedskater / babel-plugin-rewire

A babel plugin adding the ability to rewire module dependencies. This enables to mock modules for testing purposes.
843 stars 90 forks source link

TypeError: _get__(...).__GetDependency__ is not a function #194

Closed perrin4869 closed 5 years ago

perrin4869 commented 7 years ago

I'm trying to migrate from rewire to babel-plugin-rewire in my gulp plugin, gulp-i18next-conv, but I can't get it to work. I'm getting the error: TypeError: _get__(...).__GetDependency__ is not a function

Here is the source code: https://github.com/perrin4869/gulp-i18next-conv/tree/babel-plugin-rewire

And here is the build log with the error: https://travis-ci.org/perrin4869/gulp-i18next-conv/jobs/245236074

Any chance you can help me fix the error? Thanks!

GabrSaac commented 6 years ago

Same issue here with ES6. Raised a stackoverflow too: https://stackoverflow.com/questions/45305948/cannot-setup-babel-plugin-rewire-for-react-tests

perrin4869 commented 6 years ago

any chance you can take a look at my code and find a solution? lol I'll take another look at this soon