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

Hi @NadavShaar, thanks a lot for publishing this polished table component.

However, it seems that the dist code of your component relies on a deprecated babel polyfill to be globally available.

When I tried copying your demo at https://codesandbox.io/s/react-grid-table-demo-3275n?file=/src/App.js into my project, I received the error Uncaught ReferenceError: regeneratorRuntime is not defined which appears to be caused by a global babel dependency.

See this link for more information, and I suppose you may attempt the option 2 highlighted, so that the dist library code can run standalone.

Perhaps consider adding the src folder to the npm package as well, so that I may directly import your component source, using my own babel version.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
irisjaecommented, Nov 26, 2021

@NadavShaar I confirm that regeneratorRuntime is not defined is still an issue with version 1.0.2, perhaps should reopen?

1reaction
ilayofircommented, Mar 11, 2021

Hi @irisjae . Looks like the problem comes from @babel/plugin-transform-runtime not being used in your compilation. We will see if this issue can be resolved, as this is a pretty significant disadvantage. In the meantime, you can try adding it when compiling and see if this resolves your issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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