F
F
FutureNik2018-10-26 22:10:29
JavaScript
FutureNik, 2018-10-26 22:10:29

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
5bd3629615809300090905.png
that if you write console.log(mongoose), then it will be
5bd36546ea087297516474.jpeg
What to do? How to make webpack see mongoose.connect?
Connection goes like this
5bd366940f81c164630520.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Zharov, 2018-10-26
@FutureNik

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 question

Ask a Question

731 491 924 answers to any question