Error: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it) React-Intl for translation

I got this error when exporting a module with async.
Just add this to the module.exports object in webpack.config.js file.

experiments: {
  topLevelAwait: true
}

You can also read up about the experiment option in Webpack documentation. https://webpack.js.org/configuration/experiments/

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)