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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我的vite.config.ts配置文件中配置了我的scss全局变量声明文件,如下:
css:{
preprocessorOptions:{
sass:{
additionalData:
@use "~/styles/element/variables.module.scss.scss" as *;
//我曾尝试用@import,但问题依旧存在}
},
}
运行程序提示我无法使用该文件中声明的scss变量,但是同样的配置,我使用vite+javascript 却没有任何问题,仅在vite+typescript中会出现,scss给的回复是这不是scss核心问题,是vite的问题,我该怎么解决这个问题,我用的vite版本是4.3.0
Beta Was this translation helpful? Give feedback.
All reactions