diff --git a/Yi.RuoYi.Vue3/package.json b/Yi.RuoYi.Vue3/package.json index 85c27aad..3ec387e0 100644 --- a/Yi.RuoYi.Vue3/package.json +++ b/Yi.RuoYi.Vue3/package.json @@ -45,5 +45,7 @@ "vite-plugin-style-import": "^2.0.0", "vite-plugin-svg-icons": "^2.0.1", "vite-plugin-vue-setup-extend": "^0.4.0" - } + }, + "type": "module" + } diff --git a/Yi.RuoYi.Vue3/vite.config.js b/Yi.RuoYi.Vue3/vite.config.js index e6fd7574..88127e60 100644 --- a/Yi.RuoYi.Vue3/vite.config.js +++ b/Yi.RuoYi.Vue3/vite.config.js @@ -49,6 +49,11 @@ export default defineConfig(({ mode, command }) => { }, //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file css: { + //fix Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. + preprocessorOptions: { + scss: { + api: 'modern-compiler' + }}, postcss: { plugins: [ {