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)
复制代码 免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |