N
Nuxt4mo ago
Emanuel

CommonJS not transpiled to esm

I wrote a custom Nuxt 3 Module which imports and initializes a plugin which again uses a package writte in CJS. My problem is that when I use the module I get errors related to CJS not being able to be interpreted. When I add my module to the "build.transpile" option in nuxt.config.ts is still does not work. Any ídeas? I also tried to add the npm package which causes the error directly but also this does not work.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server