rebuild-to-fix-lib-import-errors

Rebuild a monorepo library with turbo build when typecheck reports import errors.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Ledger-Wallet-LLC/ledgerwallet --skill rebuild-to-fix-lib-import-errors
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rebuild-to-fix-lib-import-errors
Source: https://github.com/Ledger-Wallet-LLC/ledgerwallet/tree/main/.cursor/skills/rebuild-to-fix-lib-import-errors
Command: npx skills add https://github.com/Ledger-Wallet-LLC/ledgerwallet --skill rebuild-to-fix-lib-import-errors

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Rebuild a specific library to fix import/export errors reported by typecheck
  • Use turbo to selectively rebuild only the affected lib with a --filter
  • Applicable when monorepo libraries have stale build outputs causing TS errors

Quick Start

Run pnpm turbo build --filter=@ledgerhq/name_of_lib_here to rebuild the library referenced by the import error.

Frequently Asked Questions about rebuild-to-fix-lib-import-errors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does typecheck report import errors for a monorepo library?

Typecheck reports import errors when a monorepo library has stale build outputs. Rebuilding the affected lib refreshes the build output and resolves the TypeScript import error blocking dependent packages.

How do I rebuild a specific library in a pnpm and turbo monorepo?

Run pnpm turbo build with a --filter flag targeting the affected library, such as --filter=@ledgerhq/name_of_lib_here, to selectively rebuild only that package and resolve import errors.

Can I use turbo to rebuild only the package causing a typecheck error?

Yes, you can use turbo to rebuild only the affected package by running pnpm turbo build with the --filter flag, targeting the specific library referenced in the typecheck import error.

What's the best way to fix stale build outputs blocking typechecking across dependent packages?

The best way to fix stale build outputs is running a turbo build with a --filter flag targeting the affected library to refresh the build output and resolve the typechecking block across dependent packages.

Do I need to rebuild the entire monorepo when a single library import fails typecheck?

No, you do not need to rebuild the entire monorepo. You can run pnpm turbo build with a --filter flag targeting only the specific library causing the import error to refresh its build output.