-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Compilation error. react-transition-group/Transition #5271
Comments
If you are really stuck, then you can add
|
The problem has not disappeared and the problem is that react-bootstrap has the dependency to "@types/react-transition-group": "^ 4.2.4", but the latest version 4.4.0 is installed during react-bootstrap installation or upgrading. If manually downgrade the version to 4.2.4, then compilation is complete normal. You need to either fix the package version with strong version rule |
@DrNixx what's the exact error you are getting? |
node_modules/react-bootstrap/esm/Fade.d.ts:10:108 - error TS2314: Generic type 'Transition' requires 1 type argument(s). Declaration is: |
If upgrade package to @types/react-transition-group@4.4.0 in react-bootstrap compilation will also fail You need pin version @types/react-transition-group to 4.2.4 (without ^) |
Version 1.1.1 does not fix the second issue:
After installation the
|
This is a problem then with the RTG types being out of date on DT? |
I also had the same problem here, I fixed it by adding version |
Describe the bug
I have compilation error after update to 1.1.0.
To Reproduce
After update to 1.1.0
node_modules/react-bootstrap/esm/Fade.d.ts:2:45 - error TS7016: Could not find a declaration file for module 'react-transition-group/Transition'. 'D:/Workspace/JavaScript/onix/onix-chess-ctrls/node_modules/react-transition-group/cjs/Transition.js' implicitly has an 'any' type. 2 import Transition, { TransitionProps } from 'react-transition-group/Transition';
Install types definitions @types/react-transition-group
node_modules/react-bootstrap/esm/Fade.d.ts:10:108 - error TS2314: Generic type 'Transition<RefElement>' requires 1 type argument(s). 10 declare const Fade: React.ForwardRefExoticComponent<Pick<FadeProps, React.ReactText> & React.RefAttributes<Transition>>;
The text was updated successfully, but these errors were encountered: