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

The new update does not contains Dart Sass embedded #163

Closed
JuniorEC opened this issue Sep 1, 2022 · 11 comments
Closed

The new update does not contains Dart Sass embedded #163

JuniorEC opened this issue Sep 1, 2022 · 11 comments
Labels
bug Something isn't working needs info

Comments

@JuniorEC
Copy link

JuniorEC commented Sep 1, 2022

Erro occurs on build project

image
The folter "sass-embedded-${process.platform}-${process.arch}" is not inside on new version 1.54.8
image

@ntkme
Copy link
Contributor

ntkme commented Sep 1, 2022

The packaging has changed in latest release, now you need to npm install sass-embedded-win32-x64 (or a different one) for your current platform.

#164 will fix the confusing error message.

@nex3
Copy link
Contributor

nex3 commented Sep 2, 2022

My understanding (verified by some manual testing) was that npm would automatically install the correct optional dependency for the current platform. Why isn't that happening here? @alan-agius4 @ahabhgk

@nex3 nex3 added needs info bug Something isn't working labels Sep 2, 2022
@alan-agius4
Copy link
Contributor

@nex3 indeed it should.

@JuniorEC, can you please provide the output of the below?

node -p "process.arch"

@JuniorEC
Copy link
Author

JuniorEC commented Sep 6, 2022

@nex3 indeed it should.

@JuniorEC, can you please provide the output of the below?

node -p "process.arch"

The result is x64

@alan-agius4
Copy link
Contributor

@JuniorEC, can you try to remove the lock file and see if the problem persists? Which package manager and version are you using?

@JuniorEC
Copy link
Author

@JuniorEC, can you try to remove the lock file and see if the problem persists? Which package manager and version are you using?

I am use npm and the version is latest.

i runned npm install sass-embedded-win32-x64 and this solves the problem, any dependency of my project use this lib.

@JuniorEC
Copy link
Author

My understanding (verified by some manual testing) was that npm would automatically install the correct optional dependency for the current platform. Why isn't that happening here? @alan-agius4 @ahabhgk

That's exactly what happened, I was investigating inside node_modules, and I didn't find it there, only after the build command, but without the module initially commented

@Natuu
Copy link

Natuu commented Sep 19, 2022

On my project, updating package.json with

"os": [
    "darwin",
    "linux",
    "win32"
  ],
"cpu": [
    "x64",
    "arm",
    "ia32"
  ]

and running

rm -rf ./node_modules/
npm cache clear --force
npm i

That updated my package-lock.json and did the trick, I can now again run npm ci on a different os and arch.

It's a bit overkill, but does the job

@nex3
Copy link
Contributor

nex3 commented Sep 19, 2022

My understanding (verified by some manual testing) was that npm would automatically install the correct optional dependency for the current platform. Why isn't that happening here? @alan-agius4 @ahabhgk

That's exactly what happened, I was investigating inside node_modules, and I didn't find it there, only after the build command, but without the module initially commented

I'm not sure I understand—you say "that's what happened", but it sounds like you didn't get the optional dependency installed. Which is it?

@khemarato
Copy link

khemarato commented Feb 11, 2023

Hi everyone, I'm using sass-embedded inside a Jekyll project (Ruby) and getting a similar (?) error:

No such file or directory - /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/sass-embedded-1.58.0/ext/sass/sass_embedded/src/dart

Reinstalling the gems didn't help... Any ideas? Thank you 😊❤️🙏

@nex3
Copy link
Contributor

nex3 commented Feb 13, 2023

Hi everyone, I'm using sass-embedded inside a Jekyll project (Ruby) and getting a similar (?) error:

No such file or directory - /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/sass-embedded-1.58.0/ext/sass/sass_embedded/src/dart

Reinstalling the gems didn't help... Any ideas? Thank you blushheartpray

This is the repository for the Node.js embedded host, not Ruby.

@nex3 nex3 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs info
Projects
None yet
Development

No branches or pull requests

6 participants