front / gutenberg-js

JavaScript only version of the WordPress Gutenberg editor (DEPRECATED)
GNU General Public License v2.0
390 stars 42 forks source link

regeneratorRuntime is not defined #20

Closed arnvanhoutte closed 5 years ago

arnvanhoutte commented 5 years ago

After updating to 4.0.0-rc.1 I've been getting this error immediately in startup. Building works fine but when opening my app, this error shows up in my console and gutenberg does not load

hassan-jahan commented 5 years ago

I had the same problem. I fixed it by installing @babel/plugin-transform-runtime and editing webpack.config.js

const babelLoader = {
  loader: 'babel-loader',
  options: {
    presets: ['@babel/preset-react' ],
    plugins: ['@babel/plugin-transform-runtime' //added
]

The error has been gone but still couldn't make it work.

arnvanhoutte commented 5 years ago

Indeed, in my case adding Babel-Polyfills also worked.