// webpack.config.js
entry: {},
No error
Error:
<e> [webpack-dev-middleware] Error: No dependency factory available for this dependency type: EntryDependency
<e> at Compilation.addModuleChain (.../node_modules/webpack/lib/Compilation.js:1632:5)
<e> at Compilation._addEntryItem (.../node_modules/webpack/lib/Compilation.js:1742:8)
<e> at Compilation.addEntry (.../node_modules/webpack/lib/Compilation.js:1673:8)
<e> at .../node_modules/webpack-dev-server/lib/utils/DevServerPlugin.js:163:29
<e> at new Promise (<anonymous>)
<e> at .../node_modules/webpack-dev-server/lib/utils/DevServerPlugin.js:162:15
<e> at Array.map (<anonymous>)
<e> at .../node_modules/webpack-dev-server/lib/utils/DevServerPlugin.js:160:29
<e> at Hook.eval [as callAsync] (eval at create (.../node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:38:17)
<e> at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (.../node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
I have only entrypoints generated by plugins (ModuleFederationPlugin) and I get this error when I set empty object {} to entry.
As a workaround I can set path to empty js file. In this case, I get no error.
Please use the issue template, otherwise it will be closed
Reproducible example: https://github.com/Semigradsky/webpack-dev-server-2876
yarn build works
yarn start returns error