admin 管理员组文章数量: 1086019
Current setup is below.
Using this in package.json / devDependancies:
"sass-embedded": "^1.83.4",
Folder setup:
component.tsx
component.scss
In component.tsx:
import './component.scss';
In vite.config.ts:
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
}
}
},
I keep getting this error message:
plugin:vite:css] [sass] [sass] [sass] [sass] [sass] [sass] [sass] Embedded Dart Sass
couldn't find the embedded compiler executable. Please make sure the optional
dependency sass-embedded-linux-musl-x64 is installed in node_modules.
The sass-embedded-linux-musl-x64 part doesn't make sense either, as I'm on a Windows PC using Docker.
I've followed the docs here (/guide/features#css-pre-processors), and read a number of other examples, and none of them seem to address this issue.
本文标签:
版权声明:本文标题:reactjs - Vite, React, SCSS - Can't add SCSS (Embedded Dart Sass couldn't find the embedded compiler executable) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1737163014a1788540.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论