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

Crashes #10387

Open
joeyhub opened this issue Sep 3, 2019 · 7 comments

Comments

@joeyhub
Copy link

commented Sep 3, 2019

"plugins": [["transform-runtime", {"regenerator": true}]],
index.jsx: this.setDynamic is not a function
    at PluginPass.pre (nodules/babel-plugin-transform-runtime/lib/index.js:31:12)
    at transformFile (nodules/@babel/core/lib/transformation/index.js:78:27)
    at runSync (nodules/@babel/core/lib/transformation/index.js:45:3)
    at Object.transformSync (nodules/@babel/core/lib/transform.js:43:38)
    at babel7 (nodules/parcel-bundler/src/transforms/babel/babel7.js:31:17)
    at async babelTransform (nodules/parcel-bundler/src/transforms/babel/transform.js:13:5)
    at async JSAsset.pretransform (nodules/parcel-bundler/src/assets/JSAsset.js:83:5)
    at async JSAsset.process (nodules/parcel-bundler/src/Asset.js:213:7)
    at async Pipeline.processAsset (nodules/parcel-bundler/src/Pipeline.js:46:7)
    at async Pipeline.process (nodules/parcel-bundler/src/Pipeline.js:24:23)
    "@babel/cli": "^7.5.5",
    "@babel/core": "^7.5.5",
    "@babel/preset-env": "^7.5.5",
    "@babel/preset-react": "^7.0.0",
    "babel-plugin-transform-runtime": "^6.23.0",

node v12.7.0

@joeyhub

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Wrong repo

@joeyhub joeyhub closed this Sep 3, 2019

@babel-bot

This comment has been minimized.

Copy link
Collaborator

commented Sep 3, 2019

Hey @joeyhub! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

@joeyhub

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Not the wrong repo!

@joeyhub joeyhub reopened this Sep 3, 2019

@joeyhub

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Needs @babel/plugin-transform-runtime rather than babel-plugin-transform-runtime but lots of places all over the internet refer to the old and NPM can't handle version compatibility.

@joeyhub

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Still happening with "@babel/plugin-transform-runtime": "^7.5.5", - cache issue

@joeyhub

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

Is babel doing something evil?

If you have the old one in your rc then it seems to magically add it to devDependencies with the wrong prefix.

@JLHwung

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2019

babel-plugin-transform-runtime is not supposed to work with Babel 7. We understand it would cause troubles when people are upgrading from 6 to 7 so we try our best to update babel's official document.

I am afraid npm couldn't do much about that since essentially they are different packages.

If you have the old one in your rc then it seems to magically add it to devDependencies with the wrong prefix.

I don't think so, could you offer a reproduction repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.