notion-clone icon indicating copy to clipboard operation
notion-clone copied to clipboard

Help! `npm run dev`: MongoParseError: option usemongoclient is not supported

Open idea-zone opened this issue 4 years ago • 0 comments

I installed Monogo and also use notion-clone. The connection to 127.0.0.1:27017. Why can't run?


i Preparing project for development 10:39:18 i Initial build may take a while 10:39:18 (node:21704) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created)

i NuxtJS collects completely anonymous data about usage. 10:39:18 This will help us improve Nuxt developer experience over time. Read more on https://git.io/nuxt-telemetry

? Are you interested in participating? (Y/n) error: Unhandled Rejection at: Promise
Promise { MongoParseError: option usemongoclient is not supported at Object.parseOptions (D:\Coder\OtherCode\notion-clone\node_modules\mongodb\lib\connection_string.js:281:15) at new MongoClient (D:\Coder\OtherCode\notion-clone\node_modules\mongodb\lib\mongo_client.js:62:46) at D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\connection.js:781:16 at new Promise () at NativeConnection.Connection.openUri (D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\connection.js:778:19) at D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\index.js:330:10
at D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\helpers\promiseOrCallback.js:32:5 at new Promise () at promiseOrCallback (D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:10) at Mongoose._promiseOrCallback (D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\index.js:1151:10) at Mongoose.connect (D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\index.js:329:20) at Function.module.exports (D:\Coder\OtherCode\notion-clone\src\mongoose.js:6:12) at Function.configure (D:\Coder\OtherCode\notion-clone\node_modules@feathersjs\feathers\lib\application.js:59:8) at Object. (D:\Coder\OtherCode\notion-clone\src\app.js:34:5)
at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
} message=option usemongoclient is not supported, stack=MongoParseError: option usemongoclient is not supported at Object.parseOptions (D:\Coder\OtherCode\notion-clone\node_modules\mongodb\lib\connection_string.js:281:15) at new MongoClient (D:\Coder\OtherCode\notion-clone\node_modules\mongodb\lib\mongo_client.js:62:46) at D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\connection.js:781:16 at new Promise () at NativeConnection.Connection.openUri (D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\connection.js:778:19) at D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\index.js:330:10
at D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\helpers\promiseOrCallback.js:32:5 at new Promise () at promiseOrCallback (D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:10) at Mongoose._promiseOrCallback (D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\index.js:1151:10) at Mongoose.connect (D:\Coder\OtherCode\notion-clone\node_modules\mongoose\lib\index.js:329:20) at Function.module.exports (D:\Coder\OtherCode\notion-clone\src\mongoose.js:6:12) at Function.configure (D:\Coder\OtherCode\notion-clone\node_modules@feathersjs\feathers\lib\application.js:59:8) at Object. (D:\Coder\OtherCode\notion-clone\src\app.js:34:5) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

idea-zone avatar Sep 02 '21 02:09 idea-zone