-
Notifications
You must be signed in to change notification settings - Fork 970
Open
Description
Describe the bug
When launching the Glass instant launch DMG build app on an Intel-based MacBook running macOS 12.7.6 Monterey, the following error occurs on startup:
Javascript error occurred in the main process
Uncaught Exception:
Error: Could not load the "sharp" module using the darwin-x64 runtime
To Reproduce
Steps to reproduce the behavior:
- Download the Glass DMG build.
- Open the app on macOS 12.7.6 Monterey (Intel-based MacBook).
- Observe the error immediately on launch.
Expected behavior
The application should launch successfully without module errors and load all dependencies correctly for macOS Intel builds.
Screenshots
N/A
Environment (please complete the following information):
- OS: macOS 12.7.6 Monterey (Intel-based MacBook)
- App Version: Glass instant launch DMG build (latest)
Additional context
Error message suggests issues with the "sharp" module packaging or compatibility for darwin-x64. Possible solutions mentioned in error:
- Ensure optional dependencies can be installed:
npm install --include=optional sharp
- Ensure your package manager supports multi-platform installation: https://sharp.pixelplumbing.com/install#cross-platform
- Add platform-specific dependencies:
npm install --os=darwin --cpu=x64 sharp
- Consult installation documentation: https://sharp.pixelplumbing.com/install
Full error trace:
Uncaught Exception:
Error: Could not load the "sharp" module using the darwin-x64 runtime
... (see original message for full stack trace)
Metadata
Metadata
Assignees
Labels
No labels