-
-
Notifications
You must be signed in to change notification settings - Fork 542
Closed
Milestone
Description
Search Terms
Why explicit extension
Explicit import extension seems the ONLY convenient way to write dual module in typescript, supported by tsc.
Expected Behavior
$ ts-node a.ts
42Actual Behavior
$ ts-node a.ts
Error: Cannot find module './b.js'Steps to reproduce the problem
Minimal reproduction
// a.ts
import b from './b.js'
console.log(b)// b.ts
export default 42Specifications
- ts-node version:
- node version:
- TypeScript version:
- tsconfig.json, if you're using one:
{}
- Operating system and version:
- If Windows, are you using WSL or WSL2?:
P4sca1, Dreamer-Somebody, broofa, cezary, giacomoran and 1 more
Metadata
Metadata
Assignees
Labels
No labels