Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] @farmfe/plugin-sass cannot find exe_path #660

Closed
niuiic opened this issue Oct 26, 2023 · 6 comments
Closed

[Bug] @farmfe/plugin-sass cannot find exe_path #660

niuiic opened this issue Oct 26, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@niuiic
Copy link

niuiic commented Oct 26, 2023

Steps to reproduce

This line mentions a path dart-sass-embedded which no longer exists in latest sass-embedded-linux-x64.

image

I don't know how you want to fix it, so I don't open a pull request.

I think there is no need to try, but if you want, follow the steps.

git clone https://github.com/niuiic/gallery
pnpm i
pnpm build --filter css

What is expected?

build successfully

What is actually happening?

css:build: cache miss, executing 8ba6c5af54c37d1a
css:build:
css:build: > css@0.0.0 build /home/niuiic/Documents/projects/gallery/apps/css
css:build: > farm build
css:build:
css:build: [ Farm ] Using config file at /home/niuiic/Documents/projects/gallery/apps/css/farm.config.ts
css:build: thread '<unnamed>' panicked at '
css:build:  sass-embedded init error: No such file or directory (os error 2),
css:build:  Please try to install manually. eg:
css:build:  pnpm install sass-embedded-linux-x64
css:build: ', rust-plugins/sass/src/lib.rs:140:9
css:build: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
css:build: fatal runtime error: Rust cannot catch foreign exceptions
css:build:  ELIFECYCLE  Command failed.
css:build: ERROR: command finished with error: command (/home/niuiic/Documents/projects/gallery/apps/css) pnpm run build exited (-1)
css#build: command (/home/niuiic/Documents/projects/gallery/apps/css) pnpm run build exited (-1)

System Info

System:
    OS: Linux 6.1 Gentoo Linux
    CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
    Memory: 12.25 GB / 15.59 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.6.1 - /run/user/1000/fnm_multishells/139909_1698305850673/bin/node
    npm: 9.8.1 - /run/user/1000/fnm_multishells/139909_1698305850673/bin/npm
    pnpm: 8.9.2 - /run/user/1000/fnm_multishells/139909_1698305850673/bin/pnpm
  npmPackages:
    @farmfe/core: ^0.13.12 => 0.13.12


### Any additional comments?

_No response_
@niuiic niuiic changed the title [Bug] @farmfe/plugin-sass can not find exe_path [Bug] @farmfe/plugin-sass cannot find exe_path Oct 26, 2023
@wre232114 wre232114 self-assigned this Oct 26, 2023
@wre232114 wre232114 added the bug Something isn't working label Oct 26, 2023
@wre232114
Copy link
Member

You can remove manually installed sass-embedded installed at https://github.com/niuiic/gallery/blob/main/package.json#L20 . Then the default sass installed with @farmfe/plugin-sass will be used.

I'll make plugin-sass compatible with latest sass-embedded later.

@wre232114
Copy link
Member

issues found when trying to upgrade to latest sass-embedded. see: ahabhgk/sass-embedded-host-rust#71
You can use default sass provided by @farmfe/plugin-sass for now. I'll upgrade it as soon as above issue fixed

@niuiic
Copy link
Author

niuiic commented Oct 27, 2023

I removed sass-embedded, but no luck. Also tried installing @farmfe/plugin-sass-linux-x64-gnu but not work.

css:build: cache miss, executing 0b4694a034d02853
css:build:
css:build: > css@0.0.0 build /home/niuiic/Documents/projects/gallery/apps/css
css:build: > farm build
css:build:
css:build: [ Farm ] Using config file at /home/niuiic/Documents/projects/gallery/apps/css/farm.config.ts
css:build: thread '<unnamed>' panicked at '
css:build:  sass-embedded init error: No such file or directory (os error 2),
css:build:  Please try to install manually. eg:
css:build:  pnpm install sass-embedded-linux-x64
css:build: ', rust-plugins/sass/src/lib.rs:140:9
css:build: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
css:build: fatal runtime error: Rust cannot catch foreign exceptions
css:build:  ELIFECYCLE  Command failed.
css:build: ERROR: command finished with error: command (/home/niuiic/Documents/projects/gallery/apps/css) pnpm run build exited (-1)

@wre232114
Copy link
Member

I'll try your project and fix this issue.

By the way, we are going to replace sass-embedded with grass, see this pr #453.
In the future, sass-embedded is only used in JS Plugin

@wre232114
Copy link
Member

fixed in @farmfe/plugin-sass@0.2.6

@niuiic
Copy link
Author

niuiic commented Oct 27, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants