-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 Statement of type "ForOfStatement" #1269
Comments
Also getting this.. no other solutions posted anywhere work |
[edited for clarification] I got this when migrating to babel 7. In the node_module which caused problem and which I own, I removed the .babelrc (which was no longer needed) and added the @babel/core: ^7 dependency and the error disappeared. |
Is anyone still having this issue? Sounds like possibly an issue in Babel rather than parcel itself? |
I start getting this in parcel v1.11.0 if I import
|
Well, Parcel doesn't transpile node_modules (neither with an option) and |
@mischnic parced DOES transpile node_modules, provided the modules have a See my comment above. |
Has anyone made any progress with this? I just started running into this last night and cannot figure out a solution. I am using Parcel-bundler as an express middleware and cannot get it to build at all.
|
Closing was not what I meant to click. I'm surprised I had permission to do that. Sorry. |
@JoshyB did my solution above help? #1269 (comment) |
It had no effect for me. |
@Offirmo I gave your solution a shot but it still wouldn't build. Same error. |
Same here, no one has resolved the issuee? |
I was facing into this error only when I use
solved the issue for me (idea from https://github.com/ipfs/js-ipfs/blob/master/examples/browser-parceljs/package.json). |
@yuhr Thanks ran into the same problem when using ipfs. Almost switched to webpack after seeing this https://github.com/orbitdb/example-orbitdb-todomvc-updated |
This fixed my issue. Cheers. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
Sorry for the pollution but if you end up here due to googling, it's likely due to browserslist removing "IE 11" from the defaults (4 hours ago as of now) and the short term fix is to add back |
That didn't solve things for me. My problem persists:
|
@dep to solve my issue I removed the |
Adding "babel-plugin-transform-es2015-for-of": "^6.23.0" in package.json and compiling it first in babel config 👍 plugins: [ |
Updating your .browserlistrc file to include support for IE11
It worked fine for me, |
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
package.json
.babelrc
🤔 Expected Behavior
It bundles and transpiles my es6 targetting node_module dependencies
😯 Current Behavior
regenerator-transform fails because it finds a for-of statement within a generator.
💁 Possible Solution
According to facebook/regenerator#229 for-of statements need to be transformed before regenerator-transform can be applied. Maybe there is a way to force this.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: