SoftwareBrothers / adminjs-mongoose

Mongoose adapter for AdminJS
MIT License
14 stars 39 forks source link

TS2307: Cannot find module '@adminjs/mongoose' or its corresponding type declarations. #107

Closed pranavburnwal closed 11 months ago

pranavburnwal commented 1 year ago

Version tried: 4.0.0 4.0.0-beta.4

    "@adminjs/express": "^6.0.0",
    "@adminjs/mongoose": "4.0.0",
    "adminjs": "^7.1.0",

tsconfig.json

{
    "compilerOptions": {
        "module": "commonjs",
        "esModuleInterop": true,
        "allowSyntheticDefaultImports": true,
        "target": "ESNext",
        "noImplicitAny": true,
        "moduleResolution": "node",
    .....
    }
}
image

Thanks in advance!

Edit: Added other companion module versions

dziraf commented 1 year ago

The latest versions of AdminJS support only ESM projects, this is mentioned in the documentation: https://docs.adminjs.co/installation/getting-started#esm-and-cjs-support