Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: regeneratorRuntime is not defined #5

Open
dparkar opened this issue Oct 13, 2021 · 3 comments
Open

ReferenceError: regeneratorRuntime is not defined #5

dparkar opened this issue Oct 13, 2021 · 3 comments

Comments

@dparkar
Copy link

dparkar commented Oct 13, 2021

Getting the following error :

ReferenceError: regeneratorRuntime is not defined
at D:\src\myproject\node_modules\react-advanced-news-ticker\dist\index.js:153:50
at D:\src\myproject\node_modules\react-advanced-news-ticker\dist\index.js:213:6
at Object. (D:\src\myproject\node_modules\react-advanced-news-ticker\dist\index.js:442:2)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Object.require.extensions. [as .js] (D:\src\myproject\node_modules\ts-node\src\index.ts:851:44)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
wait - compiling...
event - compiled successfully

Found this related SO question : https://stackoverflow.com/questions/53558916/babel-7-referenceerror-regeneratorruntime-is-not-defined

I tried the following but it had no effect :

npm install --save core-js
npm install --save regenerator-runtime

Appreciate any suggestions.

@jseparovic
Copy link

Same here. Did you have any luck?

@patrickfreitasdev
Copy link

@jseparovic I was able to bypass the issue by adding this package https://www.npmjs.com/package/regenerator-runtime then const regeneratorRuntime = require("regenerator-runtime"); after use strict at the file node_modules/react-advanced-news-ticker/dist/index.js

@Hredoysen
Copy link

@jseparovic I was able to bypass the issue by adding this package https://www.npmjs.com/package/regenerator-runtime then const regeneratorRuntime = require("regenerator-runtime"); after use strict at the file node_modules/react-advanced-news-ticker/dist/index.js

but I tried it and it says regenerator-runtime is not defined
\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants