I am working on a react app and I've moved parts of the react app into a separated react component. My code worked within the react app but not in the react component.
Only the ECMA7 code does not work. It seems like there is a problem with the "babel-polyfill"...?
For example an async/await function is not working, but a promise version of the function works. Here is the error message:
Uncaught ReferenceError: regeneratorRuntime is not defined
at eval (webpack-internal:///./src/landmarks/api.js:16)
at eval (webpack-internal:///./src/landmarks/api.js:42)
at Module../src/landmarks/api.js (index.js:93)
at webpack_require (runtime.js:786)
at fn (runtime.js:151)
at eval (webpack-internal:///./src/landmarks/actions.js:3)
at Module../src/landmarks/actions.js (index.js:81)
at webpack_require (runtime.js:786)
at fn (runtime.js:151)
at eval (webpack-internal:///./src/analysis/container.jsx:6)
Please try to answer the following questions:
What version of Neutrino are you using?
9.0.0-rc.3
Are you trying to use any presets? If so, which ones, and what versions?
reactComponents 9.0.0-rc.3
Are you using the Yarn client or the npm client? What version?
npm 6.4.1
I am working on a react app and I've moved parts of the react app into a separated react component. My code worked within the react app but not in the react component. Only the ECMA7 code does not work. It seems like there is a problem with the "babel-polyfill"...?
For example an async/await function is not working, but a promise version of the function works. Here is the error message:
Please try to answer the following questions: