Command Palette

Search for a command to run...

Back to skills
skill № 77477

debug-build

Debug TypeScript/Rollup build failures in mParticle Web SDK including TS2307 cannot find module/TS2345 argument type mismatch/TS2339 property doesn't…

FreeNo executable scripts
mParticleby mParticle★ 24 GitHub stars

Install debug-build in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Build Debug Skill - Web SDK

Purpose

Fix TypeScript compilation and Rollup bundling failures in the mParticle Web SDK that block development and deployment.

Core Principles

  • Types are contracts: TS errors reveal actual vs expected interfaces
  • Module resolution is path math: Cannot find module → path calculation wrong
  • Avoid any: Use proper types where possible, but SDK has strictNullChecks=false
  • Build before test: TS errors block everything downstream

Architecture Context

TypeScript in tsconfig.json (ES5 target, no strict mode). Rollup in rollup.config.js builds IIFE, CommonJS, and ESM bundles. Build must pass before dev/test/deploy.

Failure Classification

Type errors:

  • TS2307: Cannot find module → import path wrong or missing declaration
  • TS2345: Argument type mismatch → function signature changed
  • TS2339: Property doesn't exist → interface outdated or typo
  • TS2322: Type not assignable → incompatible types
  • TS2769: No overload matches → wrong argument count/types
  • TS7006: Implicit any → no type annotation (less strict in this SDK)

Module resolution:

  • Cannot find module → path wrong, file moved, extension missing
  • Circular dependency → A imports B imports A
  • Ambient module missing → @types package not installed
  • Path mapping wrong → tsconfig paths not resolving

Rollup errors:

  • Module not found → file path incorrect or missing
  • Chunk size exceeded → bundle too large (check with npm run bundle)
  • Plugin failure → Rollup plugin crashed (Babel, TypeScript, Uglify)
  • Circular dependency warning → refactor to break cycle

Build output issues:

  • IIFE format broken → browser
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the debug-build skill do?

Debug TypeScript/Rollup build failures in mParticle Web SDK including TS2307 cannot find module/TS2345 argument type mismatch/TS2339 property doesn't exist/TS2322 type not assignable/TS2532 object possibly undefined/TS2554 expected X arguments/TS2769 no overload matches/TS7006 implicit any/TS7053 element implicitly has any/compilation error/compilation failed/compile error/tsc failed/tsc error/build failed/build error/rollup error/module not found/cannot resolve module/cannot find module/failed to resolve/import error/export error/declaration file missing/missing type declarations/@types package missing/bundle error/bundling failed/chunk load error

How do I install the debug-build skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the debug-build skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare debug-build with