Hacker News new | past | comments | ask | show | jobs | submit login

type module in the package.json, and import every and all .ts file with a .js extension. zero problems for a year or two.



>import every and all .ts file with a .js extension

And recompile on every change, gotcha. I am emphatically not doing either.

EDIT: for future reference, `"type": "module"` is not part of the fix but the thing that opens that particular can of worms. Rotten ones.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: