kpfromer / nestjs-typegoose

Typegoose with NestJS
https://kpfromer.github.io/nestjs-typegoose/
MIT License
291 stars 71 forks source link

'useNewUrlParser' does not exist in type 'TypegooseConnectionOptions' #454

Open Chris8800 opened 2 years ago

Chris8800 commented 2 years ago

I am trying to connect to mongo but I am getting the error msg above. I have read the README and installed as explained. Whats the fix?

galaxyJM commented 2 years ago

maybe the version problem

ideacco commented 2 years ago

I am trying to connect to mongo but I am getting the error msg above. I have read the README and installed as explained. Whats the fix?

Yes, I have the same problem

ps: node: 17.0 npm: 8.1.4 nest: 8.1.6 mongoose: "^6.1.3" nestjs-typegoose: "^7.1.38"

orimdominic commented 2 years ago

I think that the mongoose version of ^6.1.3 doesn't allow for that option. I think you can avoid including it. I tried it with @typegoose/typegoose: "^9.4.0" recently and my connection was successful

GrapeoffJS commented 2 years ago

RIP nestjs-typegoose...