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
It worked in webpack-cli@^3.0.0 but fails in 4.0.0 with this error:
assets by status 0 bytes [cached] 1 asset
ERROR in main
Module not found: Error: Can't resolve './src' in '/Users/doconnor/Thumbtack/webpack5-array-of-functions'
webpack 5.1.0 compiled with 1 error in 120 ms
assets by status 0 bytes [cached] 1 asset
ERROR in main
Module not found: Error: Can't resolve './src' in '/Users/doconnor/Thumbtack/webpack5-array-of-functions'
webpack 5.1.0 compiled with 1 error in 119 ms
webpack-cli@4.0.0 doesn't recognize the entry value and errors saying that it can't find ./src, the webpack default.
What is the current behavior?
Fails to find entrypoint if an array of functions is exported from the webpack config.
Describe the bug
webpack-cli@4.0.0
is not able to handle a webpack config that exports an array of functions.Take this config, for example:
It worked in
webpack-cli@^3.0.0
but fails in4.0.0
with this error:webpack-cli@4.0.0
doesn't recognize theentry
value and errors saying that it can't find./src
, the webpack default.What is the current behavior?
Fails to find entrypoint if an array of functions is exported from the webpack config.
To Reproduce
Steps to reproduce the behavior:
npm i
npm run build
Expected behavior
Compiles
./src/entry1.js
and./src/entry2.js
without errors.Screenshots
N/A
Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional context
The build works if the webpack config exports a single function or an array of objects. It specifically fails with an array of functions.
Might be related to #1843.
The text was updated successfully, but these errors were encountered: