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
/project/node_modules/webpack-configurator/lib/resolve/plugin.js:8
return plugin.klass.apply(this, args);
^
TypeError: Class constructor MyPlugin cannot be invoked without 'new'
at MyPlugin.F (/project/node_modules/webpack-configurator/lib/resolve/plugin.js:8:33)
at /project/node_modules/webpack-configurator/lib/resolve/plugin.js:13:16
at module.exports (/project/node_modules/webpack-configurator/lib/resolve/plugin.js:14:8)
at Config.resolve (/project/node_modules/webpack-configurator/index.js:180:22)
at resolveConfigurator (/project/node_modules/webpack-multi-configurator/lib/definition-collection.js:227:27)
at Array.map (native)
at resolve (/project/node_modules/webpack-multi-configurator/lib/definition-collection.js:171:8)
at Array.map (native)
at Object.resolve (/project/node_modules/webpack-multi-configurator/index.js:98:38)
at getWebpackConfig (/project/node_modules/jsio-webpack/src/builder.js:99:40)
The text was updated successfully, but these errors were encountered:
I was able to get around this by passing a function that returns a new instance of the Plugin instead of a constructor. i.e. config.plugin('plugin', () => new Plugin())
Cannot specify plugins that are written with strict mode classes:
The text was updated successfully, but these errors were encountered: