-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Parcel out of the box does "regeneratorRuntime is not defined" error even with your browserlist from your guide! #58
Comments
Thanks so much for posting the fix, @ellenripley4 ! Was getting the same error. |
I was getting this error as well. Since i was just using chrome, I updated the browserslist to just include "last 2 Chrome versions" and i was able to proceed without error |
npm install @babel/plugin-transform-runtime navigate to your .babelrc and make sure it is added to plugins array like so....
|
Parcel cannot use modern JavaScript's async/await out of the box any longer.
"browserslist": [
"last 2 Chrome versions",
]
Then create a {
"plugins": ["@babel/plugin-transform-runtime"]
} Here's the code diff for your reference – here I also updated all the dependencies as well. FYI you'll have to merge it into the final config later in the course: {
"presets": ["@babel/preset-react","@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-runtime"]
} |
Hello, Brian! I am going through your course now. At the point where async call appears (https://btholt.github.io/complete-intro-to-react-v5/async), Parcel out of the box bundles app with "regeneratorRuntime is not defined" error even after I copied your browserlist to my package.json file.
So I tried to resolve this issue and I found out that "last 2 OperaMobile versions" option gives that error. So I want you to check it out and fix browserlist in your Guide. Sorry for bothering for such stupid thing, which it may be, but it still an issue that I encountered with.
My package.json file
The text was updated successfully, but these errors were encountered: