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 trying to run vite build with an incorrect postcss.config.js file, vite fails (which is expected), but there are also unhandled errors thrown (in addition to the obvious error that postcss is failed to load).
In total there are 2 additional unhandled errors.
I suspect this is happening because postcss.config.js is processed in a separate thread, and this thread is throwing additional errors, which are not being handled correctly.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When trying to run vite build with an incorrect
postcss.config.js
file, vite fails (which is expected), but there are also unhandled errors thrown (in addition to the obvious error that postcss is failed to load).In total there are 2 additional unhandled errors.
I suspect this is happening because
postcss.config.js
is processed in a separate thread, and this thread is throwing additional errors, which are not being handled correctly.Reproduction
https://stackblitz.com/edit/vitejs-vite-ljmist?file=builder.js
Steps to reproduce
npm run build
script in the terminalSystem Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: ^6.0.0 => 6.0.2
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: