`regeneratorRuntime is not defined`
See original GitHub issueHi @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:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top 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 >
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
@NadavShaar I confirm that
regeneratorRuntime is not defined
is still an issue with version1.0.2
, perhaps should reopen?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.