# Rebuild To Fix Lib Import Errors

> When typecheck finds an error importing from a lib in the monorepo, rebuild the lib Use when this capability is needed.

- Skill: `tomevault-io/rebuild-to-fix-lib-import-errors` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/rebuild-to-fix-lib-import-errors`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/rebuild-to-fix-lib-import-errors/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/rebuild-to-fix-lib-import-errors

---


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

```shell
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`

```shell
nx run @ledgerhq/live-countervalues-react:build
```

---
> Source: [LedgerHQ/ledger-live](https://github.com/LedgerHQ/ledger-live) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-07-04 -->

