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
But when I run tuono dev I got this annoying warning :
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
After some search, it seems one the best solution is to add theses lines in the vite config file :
But its currently impossible to use the css entry in the tuono.config.ts file
Expected behaviour
I'm looking for use the sass package without deprecated message ;)
How to reproduce
create a new tuono project (tuono cli version 0.17.6)
add the package sass with the command npm i sass (or npm i --save-dev sass)
run the command npm i then tuono dev
The warning appears :
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Thank you for your comprehensive description. Your work around is correct, and I have just implemented support for the vite.css key in tuono config. For now, tuono uses vite 5, however when we upgrade to vite 6, you will be able to remove this, as vite 6 uses it by default. We will include a note in the release notes when we upgrade :)
Description
In a tuono project, I added the sass npm package in my package.json :
But when I run
tuono dev
I got this annoying warning :After some search, it seems one the best solution is to add theses lines in the vite config file :
But its currently impossible to use the
css
entry in thetuono.config.ts
fileExpected behaviour
I'm looking for use the sass package without deprecated message ;)
How to reproduce
sass
with the commandnpm i sass
(or npm i --save-dev sass)npm i
thentuono dev
The warning appears :
Screenshots
No response
System Info
System: OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm) CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900K Memory: 49.07 GB / 62.55 GB Container: Yes Shell: 5.2.15 - /bin/bash Binaries: Node: 22.10.0 - /usr/local/node/bin/node npm: 10.9.0 - /usr/local/node/bin/npm npmPackages: tuono: 0.17.6 => 0.17.6
System info (Rust)
Additional context
No response
The text was updated successfully, but these errors were encountered: