esm-cjs-interop
OfficialResolve module import conflicts.
Software Engineering#typescript#monorepo#circular dependencies#esm#cjs#module resolution#import errors
Authororient-bot
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses common issues arising from the interaction between ECMAScript Modules (ESM) and CommonJS (CJS) module systems within the Orient monorepo, preventing import errors and ensuring smooth module resolution.
Core Features & Use Cases
- Diagnose Import Errors: Pinpoint and resolve "does not provide an export named" errors.
- Prevent Circular Dependencies: Identify and refactor code to avoid dependency loops.
- Guidance on Module Patterns: Provides best practices for ESM/CJS interoperability, including correct import syntax and re-export strategies.
- Use Case: When your TypeScript build fails with cryptic ESM errors or runtime issues related to module loading, this Skill offers the tools and strategies to fix them.
Quick Start
Run the command grep '"type"' packages/*/package.json to check the module type of each package.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: esm-cjs-interop Download link: https://github.com/orient-bot/orient/archive/main.zip#esm-cjs-interop Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.