Closed SignorPollito closed 10 months ago
That was caused by a mistake I made in the code, so there were no problems related to this module.
That was caused by a mistake I made in the code, so there were no problems related to this module.
Could you please explain how did you solve the problem? I have the same issue and need help :)
I'm trying to integrate my Nuxt project with the nuxt-mongoose module, but I'm encountering a problem, even if I've followed all the steps.
First of all I installed the package
npm install nuxt-mongoose -D
Then I set up the .env and nuxt.config.ts
So I created a schema, following the wiki one
Even if I followed what's in the wiki, when running npm run dev, I'm getting this error:
I've checked and actually the module export exists and so the method used, so I don't know why it isn't working.
I've tried to remove the
import {defineMongooseModel} from "#nuxt/mongoose"
as seen in other internet pages, but then the error says that it doesn't find that method.I've tryied to remove and install the package
nuxt-mongoose
multiple times, without success.