Closed bennobuilder closed 3 years ago
AgileTs isn't importable into commonjs -> esm modules are imported and then transformed into commonjs which causes issues (like see image)
commonjs
AgileTs should be importable into commonjs without problems
AgileTs documentation
https://the-guild.dev/blog/support-nodejs-esm
"exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "module": "./dist/esm/index.js", "default": "./dist/index.js" }, "./*": { "types": "./*.d.ts", "module": "./esm/*.js", "default": "./*.js" } },
Specify what export to use in which import scenario.
Has something to do with nasty circular dependencies..
circular dependencies
🐛 Bug report
🤖 Current Behavior
AgileTs isn't importable into
commonjs
-> esm modules are imported and then transformed into commonjs which causes issues (like see image)🎯 Expected behavior
AgileTs should be importable into
commonjs
without problems📄 Reproducible example
AgileTs documentation
💡 Suggested solution(s)
https://the-guild.dev/blog/support-nodejs-esm
Specify what export to use in which import scenario.