regeneratorRuntime is not defined
See original GitHub issueDescribe the bug
I’m unable to use Auth
in my app without installing and using babel-polyfill. I really do not want to add this as an extra dependency.
Expected behavior I expect this library code to not use polyfills. If I need polyfills for my app, then I want to add them myself as needed.
Desktop (please complete the following information):
- OS: macOS
- Browser Firefox
- Version 65
Additional context I’m using a basic React SPA with Parcel defaults.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Babel 6 regeneratorRuntime is not defined - Stack Overflow
This error is caused when async/await functions are used without the proper Babel plugins. As of March 2020, the following should be all...
Read more >How to fix regeneratorRuntime is not defined?
I have ran into a problem, the error is regeneratorRuntime is not defined while working with React and Parcel bundler.
Read more >ReferenceError regeneratorRuntime is not defined · Issue #9849
I'm building an SSR template, and when I use @babebl/register and then execute webpack (config), the system reported an error.
Read more >Parcel, how to fix the `regeneratorRuntime is not defined` error
I run into this problem in a project using Babel as soon as I added an async function, but the problem is the...
Read more >regeneratorRuntime is not defined when running jest test
I got the ReferenceError: regeneratorRuntime is not defined error. ... Though, "regenerator-runtime" is present in package.json and installed.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am confused at the solution here. It seems like @elorzafe is suggesting to import Auth from aws-amplify-react, but it seems like it can’t be done? It does not show up on the list of imports.
If possible @flybayer, is there a quick overview of the fix you made?
Edit: I would guess that they used the
withAuthenticator
react tool, which I did not use (I am using AWS AppSync with the API). I had to set up babel following this. Although if it is just a different import/package setup, that would be nice.This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels or Discussions for those types of questions.