Closed qertis closed 4 months ago
I think problem in package.json. May be replace 'main' to 'module'?
This project works fine in TypeScript. This project is ESM only. 1 in 10 packages on npm are now ESM only, and it’s rising. You can find many resources online on how to use ESM. I am not going to change this project.
Ok. I created a project for CommonJS only - https://github.com/qertis/franc-node/
tsconfig.json
lib/index.js
After
tsc --build
dist/index.js
ERROR: