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
改了saas的import(旧版写法会提示)改为use,兼容最新sass的写法不报错,同时基本移除了uv-ui-tools/libs/css/color.scss换成uv-ui-tools/theme.scss发现这两个文件差不多,而且新版sass校验同名$变量和在uni.scss引入theme会冲突,干脆一次性都改成theme。而且发现组件已经进行 !default;应该问题不大,
同时警告的Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.的处理方式如下
uni_modules.zip
个人觉得现在的 @climblee/uv-ui报错有点烦,把uni_modules的css进行整体调整
下面这个包做了这块的调整,目前检测还可以
改了saas的import(旧版写法会提示)改为use,兼容最新sass的写法不报错,同时基本移除了uv-ui-tools/libs/css/color.scss换成uv-ui-tools/theme.scss发现这两个文件差不多,而且新版sass校验同名$变量和在uni.scss引入theme会冲突,干脆一次性都改成theme。而且发现组件已经进行 !default;应该问题不大,
同时警告的Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.的处理方式如下
处理方式
在vite.config.ts 官方是这么做的,移除警告
export default defineConfig({
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: ['legacy-js-api'],
},
},
},
})
The text was updated successfully, but these errors were encountered: