You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:29176) UnhandledPromiseRejectionWarning: ReferenceError: require is not defined in ES module scope, you can use import instead
at file:///<...>/node_modules/error-overlay-webpack-plugin/dist/index.mjs:1:32
This seems like an invalid import. I don't think it is related to #93, as this appears to be updating .cjs files, rather than .mjs.
For my workaround, in my webpack I have created a shim error-overlay-shim.js file that to force the import of eowp as cjs
//
// The MJS exports of error-overlay use require, and aren't valid
// in a module. Shimming with a .js file forces us to import cjs version
const ErrorOverlayPlugin = require('error-overlay-webpack-plugin')
module.exports = ErrorOverlayPlugin;
The text was updated successfully, but these errors were encountered:
When importing into an esm module:
The index.mjs file is implemented as:
This seems like an invalid import. I don't think it is related to #93, as this appears to be updating
.cjs
files, rather than.mjs
.For my workaround, in my webpack I have created a shim
error-overlay-shim.js
file that to force the import of eowp ascjs
The text was updated successfully, but these errors were encountered: