David
Nuxt 2 and Directus SDK, not loading CommonJS module
That's right. Their
index.js
file is an ES module. Then, the package.json
file of the Directus SDK has "type": "module"
, and the CommonJS file is named index.cjs
. Is that really incorrect? Shouldn't the "type": "module"
be a hint that index.js
is an ES module and that the index.cjs
file should be looked for to get the CommonJS version?12 replies