Isn't ESM the "way forward" for Node.js? I've seen tons of posts a out how TypeScript allows use of modules, and that's always seen as a good thing, but then discussion of ESM always seems to be met with disdain.
Can you care to explain how to fix it with node and typescript. I get told I'm importing it wrong, but it's the exact same way importing everything else.
13
u/Solonotix Feb 01 '22
Isn't ESM the "way forward" for Node.js? I've seen tons of posts a out how TypeScript allows use of modules, and that's always seen as a good thing, but then discussion of ESM always seems to be met with disdain.