question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

regeneratorRuntime is not defined

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
elliott-kingcommented, May 12, 2020

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.

0reactions
github-actions[bot]commented, Jul 29, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found