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
If an error occurs while building, the current error messages don't specify where the error message came from. Here's an example output that I encountered today:
❯ yarn dev
yarn run v1.22.18
$ webpack server --port 3000
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:3000/
<i> [webpack-dev-server] On Your Network (IPv4): http://10.0.0.3:3000/
<i> [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:3000/
<i> [webpack-dev-server] Content not from webpack is served from '/Users/ben/src/commscheck/which-roles/public' directory
[BABEL] Note: The code generator has deoptimised the styling of /Users/ben/src/commscheck/which-roles/node_modules/react-dom/cjs/react-dom.development.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /Users/ben/src/commscheck/which-roles/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
asset main.js 1.83 MiB [emitted] (name: main)
asset index.html 339 bytes [emitted]
runtime modules 27.4 KiB 13 modules
modules by path ./node_modules/ 1.62 MiB 40 modules
modules by path ./src/ 27.8 KiB
modules by path ./src/components/ 16.6 KiB 10 modules
modules by path ./src/styles/*.css 7.14 KiB
./src/styles/main.css 2.66 KiB [built] [code generated]
+ 4 modules
modules by path ./src/app/ 3.88 KiB
./src/app/app.tsx 550 bytes [built] [code generated]
+ 2 modules
./src/index.tsx 195 bytes [built] [code generated]
ERROR in No configuration provided for /Users/ben/src/commscheck/which-roles/src/app/app.module.css
webpack 5.72.0 compiled with 1 error in 2955 ms
From the above output I couldn't tell if this error was coming from stylelint, css-loader, style-loader, postcss, webpack itself, or some other source.
I propose prepending [stylelint] to the CLI output of stylelint-webpack-plugin to make debugging in this sort of situation easier.
Expected Behavior / Situation
CLI output (especially errors) of stylelint-webpack-plugin are easily identifiable as coming from this plugin.
Actual Behavior / Situation
CLI output provides no hints to its source.
Please paste the results of npx webpack-cli info here, and mention other relevant information
Modification Proposal
If an error occurs while building, the current error messages don't specify where the error message came from. Here's an example output that I encountered today:
From the above output I couldn't tell if this error was coming from
stylelint
,css-loader
,style-loader
,postcss
,webpack
itself, or some other source.I propose prepending
[stylelint]
to the CLI output ofstylelint-webpack-plugin
to make debugging in this sort of situation easier.Expected Behavior / Situation
CLI output (especially errors) of
stylelint-webpack-plugin
are easily identifiable as coming from this plugin.Actual Behavior / Situation
CLI output provides no hints to its source.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: