David
Nuxt 2 and Directus SDK, not loading CommonJS module
Hello ! I'm trying to use the Directus SDK with the latest version of Nuxt 2. I am getting this error :
The Directus SDK has an
index.cjs
file and I don't understand why vue-server-renderer
tries to load the ES module instead of the CommonJS file.
I don't have "type": "module"
in my package.json
. I even tried to set "type": "commonjs"
, but it still behaves the same.
Has anyone had that same kind of issue and would know about a trick to get it to work?12 replies