Skip to content

Cannot find module '@adminjs/typeorm' or its corresponding type declarations. #61

Open
@Paroca72

Description

@Paroca72

Hello,

I already seen something similar in the "closed" issues where is a workaround but not a solution.
Is possible to find a solution for this issue.

1

Node.js v18.16.0

Package,json

{
  "type": "module",
  "dependencies": {
    "@adminjs/typeorm": "^5.0.0",
    "@adminjs/express": "^6.0.0",
    "@types/express": "^4.17.17",
    "@types/express-session": "^1.17.7",
    "adminjs": "^7.0.6",
    "connect-typeorm": "^2.0.0",
    "express": "^4.18.2",
    "express-formidable": "^1.2.0",
    "express-session": "^1.17.3",
    "mssql": "^9.1.1",
    "reflect-metadata": "^0.1.13",
    "ts-node": "^10.9.1",
    "typeorm": "^0.3.17",
    "typescript": "^5.1.3"
  }
}

tsconfig.json

{
    "compilerOptions": {
        "module": "ESNext",
        "esModuleInterop": true,
        "target": "ESNext",
        "moduleResolution": "Node",
        "outDir": "dist",
        "forceConsistentCasingInFileNames": true,
        "noFallthroughCasesInSwitch": true,
        "isolatedModules": false,
        "strict": true,
        "noImplicitAny": true,
        "useUnknownInCatchVariables": false,
        "inlineSourceMap": true,
        "experimentalDecorators": true,
    },
    "ts-node": {
        "esm": true
    },
    "exclude": [
        "node_modules"
    ]
}

Thanks for your help
Sam

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