Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
127 opened this issue Jan 8, 2024 · 1 comment
Open

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

127 opened this issue Jan 8, 2024 · 1 comment

Comments

@127
Copy link

127 commented Jan 8, 2024

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

@alara96
Copy link

alara96 commented Oct 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants