After quasar upgrade 2.16.11 → 2.17.0, Deprecation warnings from Dart Sass #17518
-
After upgrading quasar to latest, when I run dev I now have endless repeating warnings like this in the console: Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. found this similar (closed) issue from quite some time ago: #9362 Any suggestions? Is this Quasar or is it me in my code somehow? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 18 replies
-
You've probably upgraded more than just quasar So, to sum up:
You can override the Vite config to enable // quasar.config file
import { mergeConfig } from 'vite'
// ...
build: {
extendViteConf (viteConf) {
viteConf.css = mergeConfig(viteConf.css, {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
})
}
} We will most likely include that config override in app-vite v2 beta to avoid inconveniences until Vite 6 stable is out with a good default value. |
Beta Was this translation helpful? Give feedback.
-
I switched to q/app-vite v2, but the warnings are still there
|
Beta Was this translation helpful? Give feedback.
-
I just had this problem. Here is part of my "dependencies": {
"@quasar/extras": "^1.16.12",
"quasar": "^2.17.1",
"vue": "^3.4.27",
},
"devDependencies": {
"@quasar/vite-plugin": "^1.8.0",
"@vitejs/plugin-vue": "^5.1.4",
"sass-embedded": "^1.80.2",
"vite": "^5.4.9",
} |
Beta Was this translation helpful? Give feedback.
-
I get a similar issue, I'm running RC-4 and getting these spammed in console:
I have tried using Sry if this is the wrong place to ask, but seems similar so if anyone has any idea lmk ty |
Beta Was this translation helpful? Give feedback.
-
I deleted my But I'm still getting the warnings :-( I tried with and without
|
Beta Was this translation helpful? Give feedback.
You've probably upgraded more than just quasar
2.16.11 → 2.17.0
and I am sure that if you pin"quasar": "2.16.11"
and reinstall deps, you will still see it. It probably happened as part of the app-vite'ssass
dependency upgrade.sass
has added a new warning. But, Quasar doesn't usesass
(dart sass) package directly. Vite invokessass.render
, which is now a deprecated API here: https://github.com/vitejs/vite/blob/c1ed8a595a02ec7f8f5a8d23f97b2f21d3834ab1/packages/vite/src/node/plugins/css.ts#L2199They have a TODO comment to change the default API to a more modern one, in Vite 6:
https://github.com/vitejs/vite/blob/c1ed8a595a02ec7f8f5a8d23f97b2f21d3834ab1/packages/vite/src/node/plugins/css.t…