vite + vue3 + tailwind 启动之后报错
vite + vue3 + tailwind 打开页面是报如下错误
npm i -d sass
安装 sass 即可
这个sass-embedded包是sass包的一个替代方案。它与sass支持相同的JS API,并且由同一团队维护。但不同的是,sass包是纯JavaScript实现的,而sass-embedded是围绕原生Dart可执行文件的JavaScript包装器。这意味着sass-embedded通常速度更快,特别是对于大型Sass编译任务,但它只能安装在Dart支持的平台上:Windows、Mac OS和Linux。
尽管是两个不同的包,但由于它们具有相同的底层实现,sass和sass-embedded都被视为“Dart Sass”。自sass-embedded包的第一个稳定版本发布以来,这两个包就同时发布并共享相同的版本号。
···cmd
17:24:19 [vite] (client) Pre-transform error: Preprocessor dependency “sass-embedded” not found. Did you install it? Try npm install -D sass-embedded
.
Plugin: vite:css
···
17:24:19 [vite] (client) Pre-transform error: Preprocessor dependency "sass-embedded" not found. Did you install it? Try `npm install -D sass-embedded`.
Plugin: vite:css
File: F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/src/styles/index.scss
17:24:20 [vite] Internal server error: Preprocessor dependency "sass-embedded" not found. Did you install it? Try `npm install -D sass-embedded`.
Plugin: vite:css
File: F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/src/styles/index.scss
at loadPreprocessorPath (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:48998:13)
at loadSassPackage (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:49013:19)
at process (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:49289:27)
at compileCSSPreprocessors (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:48412:34)
at compileCSS (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:48470:38)
at async TransformPluginContext.transform (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:47837:11)
at async file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite-plugin-inspect/dist/index.mjs:1128:17
at async EnvironmentPluginContainer.transform (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:47214:18)
at async loadAndTransform (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:41025:27)
at async viteTransformMiddleware (file:///F:/vscodeProjects/vue-admin-template-3/vue-admin-tempate-3/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:42469:24)