Code Monkey home page Code Monkey logo

DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. about nestjs-typegoose HOT 8 CLOSED

kpfromer avatar kpfromer commented on June 11, 2024
DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

from nestjs-typegoose.

Comments (8)

hasezoey avatar hasezoey commented on June 11, 2024 1

could you try:

npm i -s mongoose @typegoose/typegoose nestjs-typegoose
npm i -D @types/mongoose

just to be sure that it is installed and the latest version?

from nestjs-typegoose.

hasezoey avatar hasezoey commented on June 11, 2024

@adikaladik do you have @types/mongoose installed? otherwise just use // @ts-ignore (ignores the next line)

from nestjs-typegoose.

adikaladik avatar adikaladik commented on June 11, 2024

@hasezoey yes, I do. And the issue still appears

from nestjs-typegoose.

hasezoey avatar hasezoey commented on June 11, 2024

i dont see any problem doing

@Module({
	imports: [
		TypegooseModule.forRoot("mongodb://localhost:27017/somedb",
			{
				useNewUrlParser: true,
				useFindAndModify: false,
				useCreateIndex: true,
				useUnifiedTopology: true, // here
			}),
	],
	exports: [],
	controllers: [],
	providers: []
})
export class AppModule {}

from nestjs-typegoose.

adikaladik avatar adikaladik commented on June 11, 2024

TypegooseScreen

@hasezoey

from nestjs-typegoose.

hasezoey avatar hasezoey commented on June 11, 2024

do you use the latest version of nestjs-typegoose?

from nestjs-typegoose.

adikaladik avatar adikaladik commented on June 11, 2024

"nestjs-typegoose": "^7.0.0",

from nestjs-typegoose.

kpfromer avatar kpfromer commented on June 11, 2024

@adikaladik Did you manage to solve this issue?

from nestjs-typegoose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.