My node server-side code does not build anymore with Webpack after I moved everything to ES6 modules using imports instead of require.
"WARNING in ./node_modules/html-webpack-plugin/index.js 242:85-92 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted (webpack)/node_modules/terser-webpack-plugin/dist/worker.js 12:130-137 ...."
After that, the following node modules report:
"WARNING in ./node_modules/socket.io/lib/index.js 113:11-32 Critical dependency: the request of a dependency is an expression" (also Mongoose, Express, ...)
My dev webpack config CAN succeed, if and only if, I use nodeExternals - thus excluding the building of modules inside the app. webpack dev config (note, the whole app is also using imports now)
Everything is updated (even tried the beta versions) Node v13.8.0 Webpack v4.41.6 Plugins package.json, type: "module"
Suspicion: it's in the code itself? Is the webpack plugin not ready? Or?