Answer the question
In order to leave comments, you need to log in
Vue cli + mongoose not friendly? Or is webpack to blame?
After installing vue cli and mongoose and running, this error occurs, although they work separately . As I understand. something is wrong with webpack. When calling mongoose.connect(), it turns out
that if you write console.log(mongoose), then it will be
What to do? How to make webpack see mongoose.connect?
Connection goes like this
Answer the question
In order to leave comments, you need to log in
mongoose is a server side library for working with mongo, it is not intended for the browser
https://mongoosejs.com/docs/browser.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question