Skip to content

declaration for module 'kaop' is needed #170

@KingMario

Description

@KingMario

While using Kaop-ts in Angular project, get the following error message:

Error: node_modules/kaop-ts/dist/types/index.d.ts:6:34 - error TS7016: Could not find a declaration file for module 'kaop'. '/Users/user/projects/demo/node_modules/kaop/dist/kaop.cjs.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/kaop` if it exists or add a new declaration (.d.ts) file containing `declare module 'kaop';`

6 export { inject, provider } from "kaop";
                                   ~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions