-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use custom sass logger with preprocessorMaxWorkers
#17808
Comments
The error is due to
but this caught error is throwing due to vite/packages/vite/src/node/plugins/css.ts Lines 2439 to 2441 in 0f56e17
It's possible to "fix" it by adding vite/packages/vite/src/node/plugins/css.ts Lines 2184 to 2190 in 0f56e17
Btw, can you explain why you want to use export default defineConfig({
css: {
preprocessorMaxWorkers: true,
preprocessorOptions: {
scss: {
api: 'modern',
silenceDeprecations: ['mixed-decls'],
},
},
},
}); |
I wanted to use logger to filter out some warnings from third-party packages in node_modules. I think I'll just use silenceDeprecations then. Thanks for the tip. |
Describe the bug
When I try to use custom sass logger and have enabled option
preprocessorMaxWorkers
, vite throws the following error:Full log
This bug also occures in vite version 5.4.0-beta.1.
Steps to reproduce
Create new vite project
pnpm create vite@latest
and vanillajs templateInstall
sass
and replacestyles.css
extensionAdd vite.config.js
build
ordev
commandSystem Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: