-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Bug Report][3.7.2] [email protected] Legacy API deprecation warnings #20489
Comments
If you're using Vite in your application try replacing |
This is the responsibility of whatever bundler you're using, not vuetify. |
...
import * as sass from "sass";
export default defineConfig({
...
css :{
preprocessorOptions : {
scss: {
api: "modern",
importers: [
new sass.NodePackageImporter()
]
},
sass: {
api: "modern",
importers: [
new sass.NodePackageImporter()
]
},
}
},
...
}) Maybe can help you, if you are using vite. |
Thank you all for help. I will replace sass with sass-modern. My bad. |
If this would help anyone with the same problem in future:
to vite.config.mjs After these changes everything works fine. Edit November 2: We have changed modern-compiler to modern, because npm run build could not end when build was executed more than once. |
I was confused why this was closed as not planned when there were deprecated calls in the vuetify SCSS files, e.g.:
Looks like these have been updated in the latest release though (3.7.3): 2b22da1 |
Environment
Vuetify Version: 3.7.2
Vue Version: 3.5.6
Browsers: Chrome 128.0.0.0
OS: Windows 10
Steps to reproduce
After upgrading sass to 1.79.1 in my project there are many warnings.
"Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0."
In version 1.79.0 was this warning message added by sass team. In reproduction link are included release notes.
Expected Behavior
Change Legacy API
Actual Behavior
Warnings everywhere :)
Reproduction Link
https://github.com/sass/dart-sass/blob/main/CHANGELOG.md
The text was updated successfully, but these errors were encountered: