Skip to content

Can't run on arm-musl platform since 1.76.5 #2409

Closed
@Floppy

Description

@Floppy

Context:

  • I'm building a Docker container for arm (32 bit, not 64), on an Alpine as a base image.
  • Alpine uses musl instead of glibc.
  • dart-sass 1.76.5 changed to @parcel/watcher for filesystem events.
  • @parcel/watcher does not currently have a build for the linux-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:

  1. Do nothing. 32-bit is old hat, maybe this is just a "me" problem. 😄
  2. Get @parcel/watcher to provide an arm-musl build. I've sent them a PR for that, but it might have problems which is why they've not done it.
  3. Allow sass to use their cross-platform watcher-wasm backend if necessary. I think this will need a code change, it seems to have a different require line.
  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues about the command-line toolsJavaScriptIssues particular to the Node.js distributionenhancementhelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions