react-quiz-component icon indicating copy to clipboard operation
react-quiz-component copied to clipboard

Error in import while using Reac/Remix app with TS

Open 127 opened this issue 1 year ago • 1 comments

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';

127 avatar Jan 08 '24 09:01 127

The issue is still present in version 0.9.1, at least when using a React/Next.js app with TS. Thankfully the fix mentioned above still works.

alara96 avatar Oct 03 '24 15:10 alara96