From 380d9a35a8dbca4c748604936eaeaf2561711c22 Mon Sep 17 00:00:00 2001 From: moose-code Date: Wed, 22 Apr 2026 14:23:12 +0100 Subject: [PATCH] fix: declare bignumber.js as direct dependency The BigDecimal scalar in envio alpha.21 resolves to bignumber.js's BigNumber class, which src/utils/fpmm.ts imports directly. Locally this worked because pnpm hoists the transitive dep from envio, but the hosted service runs with strict module isolation and rejects the import with ERR_MODULE_NOT_FOUND. Pinning ^9.3.1 to match what pnpm already resolves through envio. Co-Authored-By: Claude Opus 4.7 (1M context) --- package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index 4a6c3c2..879d657 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "vitest": "4.0.18" }, "dependencies": { + "bignumber.js": "^9.3.1", "envio": "3.0.0-alpha.21", "viem": "^2.0.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bfc3560..72d6490 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + bignumber.js: + specifier: ^9.3.1 + version: 9.3.1 envio: specifier: 3.0.0-alpha.21 version: 3.0.0-alpha.21(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(typescript@5.9.3)