Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin "rewire" didn't export a Plugin instance #21

Closed
bsr203 opened this issue Jul 23, 2015 · 3 comments
Closed

The plugin "rewire" didn't export a Plugin instance #21

bsr203 opened this issue Jul 23, 2015 · 3 comments

Comments

@bsr203
Copy link

bsr203 commented Jul 23, 2015

Hi,

I updated my babel version to latest, and getting this error.

The plugin interface was changed and can you please have a look

https://babeljs.io/docs/advanced/plugins/

Module build failed: TypeError: The plugin "rewire" didn't export a Plugin instance
    at PluginManager.validate (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/plugin-manager.js:164:13)
    at PluginManager.add (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/plugin-manager.js:213:10)
    at File.buildTransformers (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/index.js:236:21)
    at new File (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/index.js:136:10)
    at Pipeline.transform (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
    at transpile (/usr/local/lib/node_modules/babel-loader/index.js:12:22)
    at Object.module.exports (/usr/local/lib/node_modules/babel-loader/index.js:69:12)
 @ multi main

versions

"babel": "^5.8.3",
    "babel-eslint": "^3.1.15",
    "babel-loader": "^5.3.2",
    "babel-plugin-rewire": "^0.1.11",
@eskimoblood
Copy link

Same here

@speedskater
Copy link
Owner

@bsr203, @eskimoblood Thanks for pointing this out. I was using the same babel versions in my tests but didn't had the same issue.
To solve the issue I changed the plugin format in 0.1.12. Could you please try again and let me know if the fix works for you?

@bsr203
Copy link
Author

bsr203 commented Jul 24, 2015

thanks.. that fixed it!!

@bsr203 bsr203 closed this as completed Jul 24, 2015
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

No branches or pull requests

3 participants