Skip to content

Error in import while using Reac/Remix app with TS #196

@127

Description

@127

Looks like it's not fixed or broken back in 0.7.1 (fixed here)
same error reproduces in React/Remix on import

Could not find a declaration file for module 'react-quiz-component'. '/Users/user/dev/lt/proj/node_modules/react-quiz-component/dist/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/react-quiz-component` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-quiz-component';`ts(7016)

fixing with fix_quiz.d.ts
declare module 'react-quiz-component';

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