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.

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)