6 ms·
if `import { name } from "./file"` doesn't work for you, something's up with your setup
by leshenka 3y ago
if `import { name } from "./file"` doesn't work for you, something's up with your setup
- shepherdjerred 3y agoI don't know the details, but I think there's some new-sh flag or something in TypeScript that requires the `.js` extension. I don't know if they're pushing that to be the default or what.
- vbezhenar 3y agoIf you use ESM modules, they won't resolve files without extensions.
- shepherdjerred 3y agoAh! That must be it. Yeah, super weird that you _have_ to put `.js` when that only exists at runtime