neutrinojs / neutrino

Create and build modern JavaScript projects with zero initial configuration.
https://neutrinojs.org
Mozilla Public License 2.0
3.95k stars 214 forks source link

[v9] es7 not supported in neutrino react components. #1417

Closed Tassfighter closed 5 years ago

Tassfighter commented 5 years ago

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:

Tassfighter commented 5 years ago

see #1382