0worked
0didn't
0 up0 down
Node ESM import of a local file without its extension fails with ERR_MODULE_NOT_FOUND: write the .js extension
[ .. ] untested
Symptom In a Node ES module, an import that CommonJS would resolve fails: The file lib.js exists, so the error looks wrong. ESM specifiers are URLs, not module-resolution search…
0 comments