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

Unknown plugin babel-plugin-transform-react-jsx-source #6695

Closed
keyz opened this issue May 4, 2016 · 5 comments
Closed

Unknown plugin babel-plugin-transform-react-jsx-source #6695

keyz opened this issue May 4, 2016 · 5 comments

Comments

@keyz
Copy link
Contributor

keyz commented May 4, 2016

#6398 added babel-preset-react/node_modules/babel-plugin-transform-react-jsx-source to .babelrc, but babel-preset-react doesn't export this module. npm run build and npm test fail because of that.

I removed this line from .babelrc and #6398's tests still pass. Should I remove it or change it to just babel-plugin-transform-react-jsx-source? @troydemonbreun @jimfb

Also cc @spicyj since you might know this issue.

@sophiebits
Copy link
Collaborator

Probably should just be babel-plugin-transform-react-jsx-source or transform-react-jsx-source but I'm confused why the test would be passing even without it. Do you want to look into that @keyanzhang?

@keyz
Copy link
Contributor Author

keyz commented May 4, 2016

This is really weird -- my build fails both on master and that commit. Could you reproduce this (locally and on travis)? @spicyj

@sophiebits
Copy link
Collaborator

sophiebits commented May 4, 2016

Haven't tried locally. Travis is broken trying to calculate coverage (unrelated) but the jest tests themselves appear to pass:

https://travis-ci.org/facebook/react/jobs/127678860

@keyz
Copy link
Contributor Author

keyz commented May 4, 2016

Oh I figured out. It fails on npm3 but not npm2, since npm2 doesn't flatten deps. Out travis build only runs on npm2. babel-plugin-transform-react-jsx-source is a dependency of babel-preset-react.

I can do a PR to change .babelrc but I don't need if we actually need this plugin.

@sophiebits
Copy link
Collaborator

Got it. Let's add an explicit dep in package.json and change .babelrc to reference it directly (don't need the babel-plugin- prefix in .babelrc).

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

2 participants