-
Notifications
You must be signed in to change notification settings - Fork 29
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
yarn bootstrap errors on MacOS while building the canvas dependency #6391
Comments
I think #6349 introduced this. |
To be honest, the subject viewer is never rendered on the server, so |
@eatyourgreens see instructions for MacOS installation of canvas in lib-subject-viewer's Readme and the node-canvas issue. |
Thanks! The |
|
The Docker builds use Subject viewer tests run fine in Node, even without those binaries. I wasn't expecting that, to be honest. |
After a bit of experimentation, it turns out you can completely remove TBH, given that the subject viewers are only ever run in browsers, never in Node, I'd test the Volumetric Viewer with Playwright rather than JSDOM. I've been using Playwright for some WebGL/canvas stuff I'm working on, and it just works out of the box. It also allows me to run my tests in Firefox, Chromium and Webkit, which is really useful. |
#6446 will close this. |
Describe the bug
yarn bootstrap
fails on MacOS Sonoma when it tries to run post-install builds for thecanvas
package. My local build environment is:Here's the build output with the error.
To Reproduce
yarn bootstrap
and the build fails during theyarn install --frozen-lockfile
step.I'm not sure if there's something specific to my build environment that breaks the install just for me.node-canvas
has to be compiled from source on Apple CPUs.Additional context
To work around this, install with install scripts disabled. This is good security practice anyway, to guard against supply-chain attacks that install malware on your laptop from NPM.
I found this in the
node-canvas
Readme:I'm trying to bootstrap the monorepo on an M3 Macbook, so that explains why it's trying to compile
node-canvas
from source.The text was updated successfully, but these errors were encountered: