watcher icon indicating copy to clipboard operation
watcher copied to clipboard

Error building parcel watcher on m1

Open SashvDave opened this issue 1 year ago • 4 comments

Error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-darwin-arm64. 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. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher. at Object. (/Users/sashvdave/Devon/electron/node_modules/@parcel/watcher/index.js:26:13) at Module._compile (node:internal/modules/cjs/loader:1373:14) at Module._extensions..js (node:internal/modules/cjs/loader:1432:10) at Module.load (node:internal/modules/cjs/loader:1215:32) at Module._load (node:internal/modules/cjs/loader:1031:12) at c._load (node:electron/js2c/node_init:2:17025) at Module.require (node:internal/modules/cjs/loader:1240:19) at require (node:internal/modules/helpers:179:18) at Object. (/Users/sashvdave/Devon/electron/.vite/build/main.js:28:17) at Module._compile (node:internal/modules/cjs/loader:1373:14) 2024-07-07 10:17:44.588 Electron[59663:2966073] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.

SashvDave avatar Jul 07 '24 15:07 SashvDave

have this same issue

oscareng avatar Jul 18 '24 17:07 oscareng

+1. Facing this issue when bundling as a standalone executable using pkg.

bharathvaj-ganesan avatar Nov 18 '24 01:11 bharathvaj-ganesan

Just sharing on behalf of a coworker, we got the same error. After rolling back to v2.1.0 the error went away. From what I can tell, this was the point in which the prebuilds binaries stopped being shipped with the package.

Adding the following the package.json was our workaround for this issue.

  "overrides": {
    "@parcel/watcher": "~2.1.0"
  }

dezyh avatar Jan 16 '25 09:01 dezyh

@parcel/watcher-darwin-arm64 does exist. So if it's not being installed then that's a problem with your package manager.

devongovett avatar Jan 25 '25 19:01 devongovett