Mahsa
defineNuxtConfig is not defined
Hello, This Morning suddenly i fell into one wierd problem with defineNuxtConfig which i really appreciate your help cause i'm really confused.
I have this error: "defineNuxtConfig is not defined " while i wanted to run npm i or npm run dev and nothing has changed in the project from the last time that it has worked well!
One other weird issue is that when i'm trying to install a new nuxt3 peoject i'll face with same Error!!
Could anyone help me in that regard?
( I already read the same exist solution in the channel and trying to re- run everything, deleting the node_modules, importing defineNuxtConfig, .. also "npm list nuxt" will shoe only [email protected] )
Thank you
12 replies
Minio package is not compatible with nuxt3 since it use commonjs
Hello everyone reading this post,
I find myself in quite a predicament with an issue I'm facing. I'm working on implementing a file uploader in Nuxt3, which is not SSR, and the server I'm using is Minio. After some research, I found that the best compatible S3 library for Minio is the one they published on GitHub: https://github.com/minio/minio-js.
However, integrating this library into Nuxt3 has proven to be quite challenging. Since it's based on CommonJS, I attempted to transpile it in the nuxt.config.ts file, but this approach led to a series of errors. I tried importing it using the following method: "import * as Minio from 'minio'". Unfortunately, this resulted in the following error: "The requested module '/_nuxt/node_modules/fast-xml-parser/src/fxp.js?v=60a1ec0a' does not provide an export named 'XMLParser'."
It feels like I'm digging myself deeper into this problem. If any of you have any ideas on how to overcome this hurdle, I would greatly appreciate your assistance. ❤️🔥
8 replies