Closed
Description
Context:
- I'm building a Docker container for
arm
(32 bit, not 64), on an Alpine as a base image. - Alpine uses
musl
instead ofglibc
. - dart-sass 1.76.5 changed to
@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.
Error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-linux-arm-musl. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet.
There are a few possible solutions, I'm not sure which is best:
- Do nothing. 32-bit is old hat, maybe this is just a "me" problem. 😄
- Get
@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. - Allow
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. - Only throw errors at runtime if watch mode is enabled. In my case, I'm doing a one-off compilation in the Docker build, so there's no need for file watching.
Any thoughts?