Skip to content

A local-first personal finance app

fix: Add glob-hasher-linux-arm64-gnu as optional dependency to fix yarn typecheck error on ARM64 containers (#7917)

clintharrisfb4b0aaba843
diff --git a/package.json b/package.json
index 47b1adeda8..ebb1602d04 100644
--- a/package.json
+++ b/package.json
@@ -104,6 +104,9 @@
"built": true
}
},
+ "optionalDependencies": {
+ "glob-hasher-linux-arm64-gnu": "1.4.2"
+ },
"resolutions": {
"adm-zip": "patch:adm-zip@npm%3A0.5.16#~/.yarn/patches/adm-zip-npm-0.5.16-4556fea098.patch",
"[email protected]": "10.2.5",
diff --git a/upcoming-release-notes/7917.md b/upcoming-release-notes/7917.md
new file mode 100644
index 0000000000..d0cf591420
--- /dev/null
+++ b/upcoming-release-notes/7917.md
@@ -0,0 +1,6 @@
+---
+category: Bugfixes
+authors: [clintharris]
+---
+
+Fix `yarn typecheck` MODULE_NOT_FOUND error on Apple Silicon
diff --git a/yarn.lock b/yarn.lock
index 92afcb6605..ba3ff3484a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -11134,6 +11134,7 @@ __metadata:
eslint: "npm:^10.2.0"
eslint-plugin-perfectionist: "npm:^5.8.0"
eslint-plugin-typescript-paths: "npm:^0.0.33"
+ glob-hasher-linux-arm64-gnu: "npm:1.4.2"
husky: "npm:^9.1.7"
lage: "npm:^2.15.5"
lint-staged: "npm:^16.4.0"
@@ -11156,6 +11157,8 @@ __metadata:
built: true
esbuild:
built: true
+ glob-hasher-linux-arm64-gnu:
+ optional: true
sharp:
built: true
languageName: unknown
@@ -17077,6 +17080,13 @@ __metadata:
languageName: node
linkType: hard
+"glob-hasher-linux-arm64-gnu@npm:1.4.2":
+ version: 1.4.2
+ resolution: "glob-hasher-linux-arm64-gnu@npm:1.4.2"
+ conditions: os=linux & cpu=arm64 & libc=glibc
+ languageName: node
+ linkType: hard
+
"glob-hasher-linux-x64-gnu@npm:1.4.2":
version: 1.4.2
resolution: "glob-hasher-linux-x64-gnu@npm:1.4.2"