IceMeltAll
Nuxt 3.13 clean yarn install fails.
this is old and noboyd answered, but I would never want to docker npm init anything.
I'd rather once set up the nuxt application and then make most of its folder (excep node_modules and .nuxt) part of the docker container via 'volumes' parameter
nevertheless, that's the least of the issues when trying to run a docker container for nuxt. I've seen so many pre-set examples for React or any other technologies, but none for nuxt
2 replies
project with MongoDB
On the mongodb website they have two different courses.
One for mongoose, which still is useless because nuxt recommends nuxt-mongoose which is set up differently (https://learn.mongodb.com/learn/course/mongoose-odm-with-mongodb/learning-byte/learn?client=customer&page=1)
and one for standard mongo driver using Node.js.
https://learn.mongodb.com/learn/course/connecting-to-mongodb-in-nodejs/lesson-3-troubleshooting-a-mongodb-connection-in-nodejs-applications/learn?client=customer
This last one might be actually what can help you. You must be smarter than me to be brave enough to use standard library in nuxt. I am already lost in so many linked files and auto-imports, that I am either all-in nuxt or just go ahead and ditch it for vanilla js 🤣
10 replies
Nuxt-Mongoose
how is your nuxt-mongoose connection to instance set up? Initially for me it was working using .env and configuring it in nuxt.config.ts like this
mongoose: {
uri: 'process.env.MONGODB_URI',
options: {},
modelsDir: 'models',
devtools: true,
},
but once I started adding /server/methods and /server/middleware the console when running npm run dev keeps outputing
ERROR Error connecting to MongoDB: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
7 replies