Typescript esm import fix
Skill alexngai/skill-tree/docs/demo/skills/typescript-esm-import-fix
Fix TypeScript ES module import errors by adding .js extensions to relative imports.From its SKILL.md
npx -y skills add alexngai/skill-tree --skill typescript-esm-import-fixAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
0.6 KB, 117 tokens by cl100k_base, as published. Nobody here has run it
TypeScript ESM Import Fix
TypeScript with ES modules requires explicit .js extensions in relative imports —
even though the source files are .ts.
- Add a
.jsextension to every relative import (./foo→./foo.js). - Keep it
.jseven when the file on disk isfoo.ts. - Run
tsc --noEmitand confirm there are no module-resolution errors.
If you can't touch every import, set "moduleResolution": "bundler" in tsconfig.json.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.