[GH-ISSUE #7915] [Bug]: yarn typecheck fails with missing dependency in dev container on Silicon #117606

Closed
opened 2026-06-11 13:02:08 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @clintharris on GitHub (May 21, 2026).
Original GitHub issue: https://github.com/actualbudget/actual/issues/7915

What happened?

I was trying to run yarn typecheck in a container but it fails with the following error:

# yarn typecheck
/workspaces/actual/node_modules/glob-hasher/index.js:244
    throw loadError
    ^

Error: Cannot find module 'glob-hasher-linux-arm64-gnu'
Require stack:
- /workspaces/actual/node_modules/glob-hasher/index.js
- /workspaces/actual/node_modules/lage/dist/lage.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1430:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1040:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1045:22)
    at Function._load (node:internal/modules/cjs/loader:1216:25)
    at wrapModuleLoad (node:internal/modules/cjs/loader:254:19)
    at Module.require (node:internal/modules/cjs/loader:1527:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/workspaces/actual/node_modules/glob-hasher/index.js:213:31)
    at Module._compile (node:internal/modules/cjs/loader:1781:14)
    at Object..js (node:internal/modules/cjs/loader:1913:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/workspaces/actual/node_modules/glob-hasher/index.js',
    '/workspaces/actual/node_modules/lage/dist/lage.js'
  ]
}

Node.js v22.22.3

Fix

The immediate fix for my env (Docker container running on Apple Silicon) was:

yarn add --optional glob-hasher-linux-arm64-gnu@1.4.2

I believe adding the --optional flag will prevent this from causing issues on non-Arm64 chips.

How can we reproduce the issue?

Steps to reproduce

  1. Start devcontainer on an Apple Silicon machine
  2. In the container, run yarn typecheck

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

No response

Operating System

Mac OSX

Originally created by @clintharris on GitHub (May 21, 2026). Original GitHub issue: https://github.com/actualbudget/actual/issues/7915 ### What happened? I was trying to run `yarn typecheck` in a container but it fails with the following error: ``` # yarn typecheck /workspaces/actual/node_modules/glob-hasher/index.js:244 throw loadError ^ Error: Cannot find module 'glob-hasher-linux-arm64-gnu' Require stack: - /workspaces/actual/node_modules/glob-hasher/index.js - /workspaces/actual/node_modules/lage/dist/lage.js at Function._resolveFilename (node:internal/modules/cjs/loader:1430:15) at defaultResolveImpl (node:internal/modules/cjs/loader:1040:19) at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1045:22) at Function._load (node:internal/modules/cjs/loader:1216:25) at wrapModuleLoad (node:internal/modules/cjs/loader:254:19) at Module.require (node:internal/modules/cjs/loader:1527:12) at require (node:internal/modules/helpers:147:16) at Object.<anonymous> (/workspaces/actual/node_modules/glob-hasher/index.js:213:31) at Module._compile (node:internal/modules/cjs/loader:1781:14) at Object..js (node:internal/modules/cjs/loader:1913:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/workspaces/actual/node_modules/glob-hasher/index.js', '/workspaces/actual/node_modules/lage/dist/lage.js' ] } Node.js v22.22.3 ``` ### Fix The immediate fix for my env (Docker container running on Apple Silicon) was: ``` yarn add --optional glob-hasher-linux-arm64-gnu@1.4.2 ``` I believe adding the `--optional` flag will prevent this from causing issues on non-Arm64 chips. ### How can we reproduce the issue? ### Steps to reproduce 1. Start devcontainer on an Apple Silicon machine 2. In the container, run `yarn typecheck` ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? _No response_ ### Operating System Mac OSX
GiteaMirror added the bug label 2026-06-11 13:02:08 -05:00
Author
Owner

@coderabbitai[bot] commented on GitHub (May 21, 2026):

🔗 Related PRs

actualbudget/actual#7861 - [AI] sync-server.Dockerfile: unbreak yarn build:server after lage migration [merged]


📝 Issue Planner

Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

  • Create Plan

🧪 Issue enrichment is currently in open beta.

You can configure auto-planning by selecting labels in the issue_enrichment configuration.

To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

issue_enrichment:
  auto_enrich:
    enabled: false

💬 Have feedback or questions? Drop into our discord!

<!-- gh-comment-id:4503861934 --> @coderabbitai[bot] commented on GitHub (May 21, 2026): <!-- This is an auto-generated issue plan by CodeRabbit --> <details> <summary>🔗 Related PRs</summary> actualbudget/actual#7861 - [AI] sync-server.Dockerfile: unbreak `yarn build:server` after lage migration [merged] </details> --- <details> <summary>📝 Issue Planner</summary> <sub>Check the box below or use the `@coderabbitai plan` command to generate an implementation plan and prompts that you can use with your favorite coding assistant.</sub> - [ ] <!-- {"checkboxId": "8d4f2b9c-3e1a-4f7c-a9b2-d5e8f1c4a7b9"} --> Create Plan </details> --- <details> <summary> 🧪 Issue enrichment is currently in open beta.</summary> You can configure auto-planning by selecting labels in the issue_enrichment configuration. To disable automatic issue enrichment, add the following to your `.coderabbit.yaml`: ```yaml issue_enrichment: auto_enrich: enabled: false ``` </details> 💬 Have feedback or questions? Drop into our [discord](https://discord.gg/coderabbit)!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#117606