admin管理员组

文章数量:1516870

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.

本文标签: