Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

TypeError: Plugin is not a function #51

Closed
phaistonian opened this issue Dec 8, 2015 · 6 comments
Closed

TypeError: Plugin is not a function #51

phaistonian opened this issue Dec 8, 2015 · 6 comments

Comments

@phaistonian
Copy link

Any idea how to resolve or what's causing this?

ERROR in ./js/index.js
Module build failed: TypeError: Plugin is not a function
    at exports.default (/Users/phaistonian/www/Test/node_modules/babel-plugin-react-transform/lib/index.js:258:10)
@jamiebuilds
Copy link
Collaborator

You are using this plugin with Babel 6, but the newest version has not been published.

Please see: #50 (comment)

@vicentedealencar
Copy link

I've been following #50, and I am using 2.0.0-beta1

I see the error: Module build failed: TypeError: Plugin is not a function

Looking further on the error line on ./node_modules/babel-plugin-react-transform/lib/index.js
return new Plugin('babel-plugin-react-transform', {

Maybe I have still some left overs from react-hot-loader

@jamiebuilds
Copy link
Collaborator

@vicentedealencar That line does not exist in 2.0.0-beta.1, you must still have 1.x installed.

@NeurAlch
Copy link

In case someone comes here, I had this problem, removed my 1.1.1 from node_modules and run as indicated on the Readme:

npm install --save-dev babel-plugin-react-transform@beta

Solves it for me.

@vicentedealencar
Copy link

ops, my bad. thanks

@natac13
Copy link

natac13 commented Dec 21, 2015

@PabloRosales +1! Thanks so much

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants