Open Floppy opened 6 days ago
You can also use the sass-embedded
package as a replacement for sass
, which supports the same CLI and API. It ships native dart version for arm on linux-musl.
ooh, that's by far the easiest solution for my immediate problem! Thank you!
I think it would be reasonable to make @parcel/watcher
an optional dependency.
To be clear, the title of this issue is a bit misleading. The sass
package itself can be installed, just that when starting up sass command or require('sass')
API will fail with the error message.
@ntkme ah sorry, I may have misread the error logs I was looking at, I thought it was an installation failure. I'll update the title! Fantastic work on the fix, much appreciated! 🎉
Context:
arm
(32 bit, not 64), on an Alpine as a base image.musl
instead ofglibc
.@parcel/watcher
for filesystem events.@parcel/watcher
does not currently have a build for thelinux-arm-musl
platform.Therefore, sass fails on 32 bit arm musl platforms.
There are a few possible solutions, I'm not sure which is best:
@parcel/watcher
to provide anarm-musl
build. I've sent them a PR for that, but it might have problems which is why they've not done it.sass
to use their cross-platformwatcher-wasm
backend if necessary. I think this will need a code change, it seems to have a different require line.Any thoughts?