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
When exporting multiple configurations, dev server seems to be aware that the ports must be different per config (it returns a helpful error if the ports are the same). However, if the ports are different it outputs the error:
[webpack-dev-middleware] ConcurrentCompilationError: You ran Webpack twice. Each instance only supports a single concurrent compilation at a time
and it seems to compile each configuration twice.
Actual Behavior
webpack serve returns a ConcurrentCompilationError, and outputs compilation information for each asset twice
Expected Behavior
webpack serve returns no error and outputs compilation for each asset once.
How Do We Reproduce?
Minimum reproducible repo here. Run yarn webpack serve and observe the error and that there are 4 compilation outputs instead of 2. Note that when removing the devServer from configuration it works as expected.
Please paste the results of npx webpack-cli info here, and mention other relevant information
Bug report
When exporting multiple configurations, dev server seems to be aware that the ports must be different per config (it returns a helpful error if the ports are the same). However, if the ports are different it outputs the error:
and it seems to compile each configuration twice.
Actual Behavior
webpack serve
returns aConcurrentCompilationError
, and outputs compilation information for each asset twiceExpected Behavior
webpack serve
returns no error and outputs compilation for each asset once.How Do We Reproduce?
Minimum reproducible repo here. Run
yarn webpack serve
and observe the error and that there are 4 compilation outputs instead of 2. Note that when removing thedevServer
from configuration it works as expected.Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: