-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
What is the current behavior?
I just import mongoose in a project that initialized by vue-cli 2.0,when I run the project ,an error thrown as the title said,can anyone explain why?thanks!!
here is the detail of error:
Uncaught TypeError: Cannot read property 'prototype' of undefined
at eval (webpack-internal:///./node_modules/mongoose/lib/types/buffer.js:184)
at Array.forEach ()
at Object.eval (webpack-internal:///./node_modules/mongoose/lib/types/buffer.js:183)
at eval (webpack-internal:///./node_modules/mongoose/lib/types/buffer.js:306)
at Object../node_modules/mongoose/lib/types/buffer.js (app.bundle.js:2554)
at webpack_require (app.bundle.js:679)
at fn (app.bundle.js:89)
at Object.eval (webpack-internal:///./node_modules/mongoose/lib/schema/buffer.js:10)
at eval (webpack-internal:///./node_modules/mongoose/lib/schema/buffer.js:225)
at Object../node_modules/mongoose/lib/schema/buffer.js (app.bundle.js:2386)
at webpack_require (app.bundle.js:679)
at fn (app.bundle.js:89)
at eval (webpack-internal:///./node_modules/mongoose/lib/schema/array.js:19)
at Object../node_modules/mongoose/lib/schema/array.js (app.bundle.js:2370)
at webpack_require (app.bundle.js:679)
at fn (app.bundle.js:89)
Please mention your node.js, mongoose and MongoDB version.
Node.js 8.12
mongoose 5.3.5
MongoDB 4.0.3