Skip to content

AdminJS Mongoose is not working with Typescript  #116

@aman1205

Description

@aman1205

Cannot find module '@adminjs/mongoose' or its corresponding type declarations.
There are types at 'c:/Users/Aman/Desktop/Project/mlcoe/quiz_backend/node_modules/@adminjs/mongoose/lib/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.ts(2307)

Here my ts config file
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"strict": true,
"noImplicitAny": true,
"moduleResolution": "node",
"sourceMap": true,
"baseUrl": ".",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strictPropertyInitialization": false,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"paths": {
"": [
"node_modules/
"
]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions