Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdminJS Mongoose is not working with Typescript #116

Open
aman1205 opened this issue May 14, 2024 · 0 comments
Open

AdminJS Mongoose is not working with Typescript #116

aman1205 opened this issue May 14, 2024 · 0 comments

Comments

@aman1205
Copy link

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"]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant