rebuild-to-fix-lib-import-errors

star 597

When typecheck finds an error importing from a lib in the monorepo, rebuild the lib

LedgerHQ By LedgerHQ schedule Updated 5/21/2026

name: rebuild-to-fix-lib-import-errors description: When typecheck finds an error importing from a lib in the monorepo, rebuild the lib

When typecheck finds an error importing from a lib in the monorepo rebuild the lib using the command below:

nx run @ledgerhq/name_of_lib_here:build

Example

live-countervalues-react has been updated and the import in live-common is erroring

We run typecheck and get the following error:

src/currencies/hooks.ts:1:10 - error TS2305: Module '"@ledgerhq/live-countervalues-react"' has no exported member 'useMarketcapIds'. 1 import { useMarketcapIds } from "@ledgerhq/live-countervalues-react";

We need to rebuild @ledgerhq/live-countervalues-react

nx run @ledgerhq/live-countervalues-react:build
Install via CLI
npx skills add https://github.com/LedgerHQ/ledger-live --skill rebuild-to-fix-lib-import-errors
Repository Details
star Stars 597
call_split Forks 474
navigation Branch main
article Path SKILL.md
More from Creator