debug-build

Diagnose and fix TypeScript and Rollup build failures in the mParticle Web SDK.

24|59|Updated Aug 28, 2015
One-click install
npx skills add https://github.com/mParticle/mparticle-web-sdk --skill debug-build-mparticle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-build
Source: https://github.com/mParticle/mparticle-web-sdk/tree/main/.claude/skills/debug-build
Command: npx skills add https://github.com/mParticle/mparticle-web-sdk --skill debug-build-mparticle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Skill helps developers identify and repair TypeScript compilation and Rollup bundling failures that block building and deploying the mParticle Web SDK.

Core Features & Use Cases

  • Error classification: Quickly categorizes common TypeScript errors (TS2307, TS2345, TS2339, TS2322, TS2769, TS7006) and Rollup-related issues.
  • Diagnosis workflow: Guides targeted checks for module resolution, imports, and plugin failures to locate root causes.
  • Build verification: Validates fixes by rebuilding and ensuring compatibility across IIFE, CommonJS, and ES module bundles.

Quick Start

Diagnose the first failing error in a local dev build and follow the suggested remediation steps.

Frequently Asked Questions about debug-build

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

FAQPage Schema
How do I fix TypeScript errors like TS2307 and TS2345 blocking my Web SDK build?

Fix TypeScript errors by classifying codes like TS2307 or TS2345 and diagnosing module resolution or import issues. The Skill guides targeted code changes to restore successful compilation across IIFE, CommonJS, and ES module bundles.

Why does my Rollup bundling fail when building the mParticle Web SDK?

Rollup bundling fails due to plugin failures or module resolution issues. The Skill locates root causes by running targeted checks on imports and plugins, then guides code changes to repair IIFE, UMD, and ESM bundle outputs.

What's the best way to reproduce a TypeScript build failure locally before fixing it?

Reproduce a TypeScript build failure locally by running the first failing error in a local dev build. The Skill uses this diagnosis workflow to identify error sources and apply remediation steps for the mParticle Web SDK.

Can I use this to diagnose Rollup plugin failures in a CI workflow?

Yes, you can diagnose Rollup plugin failures in CI workflows. The Skill applies to both development and CI environments where TypeScript errors and Rollup problems block builds, verifying fixes across IIFE, CommonJS, and ES module bundles.

How do I resolve TypeScript error TS7006 during Web SDK compilation?

Resolve TS7006 during compilation by identifying it as a common TypeScript error and following the guided remediation steps. The Skill categorizes TS7006 alongside TS2339 and TS2769 to locate root causes and apply targeted code changes.