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

[BUG] Could not find a declaration file for module 'react-transition-group/Transition' #1012

Closed
Virtute90 opened this issue Feb 2, 2024 · 1 comment · Fixed by #1016
Closed
Assignees
Labels
Milestone

Comments

@Virtute90
Copy link
Collaborator

Describe the bug
I'm building my project but I encounter this problem:

node_modules/design-react-kit/dist/types/Accordion/AccordionBody.d.ts:2:33 - error TS7016: Could not find a declaration file for module 'react-transition-group/Transition'. '/var/www/html/node_modules/react-transition-group/cjs/Transition.js' implicitly has an 'any' type.

2 import { TransitionProps } from 'react-transition-group/Transition';
                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in node_modules/design-react-kit/dist/types/Accordion/AccordionBody.d.ts:2

To Reproduce
Steps to reproduce the behavior:

npm run build

Solution
The problem is solved by installing in my project @types/react-transition-group

Other Required Information (please complete the following information):

  • OS: ubuntu 22.04
  • Browser [e.g. chrome, safari]
  • Version 5.0.0-8
@Virtute90 Virtute90 added the bug label Feb 2, 2024
@astagi astagi self-assigned this Feb 5, 2024
@astagi astagi added this to the Version 5.0.0 milestone Feb 5, 2024
@astagi
Copy link
Member

astagi commented Feb 5, 2024

uhm should it be included in dependencies instead of devDependencies? @sabato-galasso

@sabato-galasso sabato-galasso linked a pull request Feb 6, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants