type module in the package.json, and import every and all .ts file with a .js extension. zero problems for a year or two.
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.