最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Vite, React, SCSS - Can't add SCSS (Embedded Dart Sass couldn't find the embedded compiler executable)

programmeradmin12浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论