Skip to content

Missing module declaration #1

@mviranyi

Description

@mviranyi

During compilation the error

src/components/CardComponent.tsx:3:27 - error TS7016: Could not find a declaration file for module 'react-combine-styles'. '/home/{USER}/Git/{PROJECT}/runtime/packages/{PACKAGE_A}/node_modules/react-combine-styles/index.js' implicitly has an 'any' type.
  Try `npm install @types/react-combine-styles` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-combine-styles';`

Adding index.d.ts to the package contents with could calm the compiler:

declare module 'react-combine-styles';

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