Skip to content

TS7016: Could not find a declaration file for module 'db-migrate' #2

@minotogna

Description

@minotogna

My IDE always gives error TS7016: Could not find a declaration file for module 'db-migrate'

Screenshot 2021-03-31 at 08 26 08

tsconfig.json:

{
  "allowSyntheticDefaults": true,
  "exclude": ["node_modules", "src/**/*.test.ts", "src/**/tests/**"],
  "include": ["src", "./node_modules/@machinomy/types-node-db-migrate/index.d.ts"],

  "compilerOptions": {
    "allowJs": true,
    "allowSyntheticDefaultImports": true,
    "alwaysStrict": true,
    "baseUrl": "./",
    "declaration": true,
    "module": "CommonJS",
    "moduleResolution": "Node",
    "noFallthroughCasesInSwitch": true,
    "noImplicitAny": true,
    "noImplicitReturns": true,
    "noImplicitThis": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "outDir": "./dist/",
    "removeComments": true,
    "skipLibCheck": true,
    "sourceMap": true,
    "strict": true,
    "strictFunctionTypes": true,
    "strictNullChecks": true,
    "target": "esnext"
  }
}

Is there some config I'm missing?

Thank you for your support.

Mino

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