-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
TypeScript error when upgrading to react-redux 8.0.0 #1909
Comments
Yep I confirm, I have the same compiling error on my side |
All the redux-libraries are shipping with the source code - RTK is also already shipping since 1.0 with TypeScript. |
I'm encountering the same issue and do not think this is a TSC misconfiguration or bad-import on the consumer's side, and the error occurs even when explicitly ignoring node modules. I ran Line 30 in 26ddc6a
Subscription directly from src (as opposed to relative), which means that the following is then emitted as such in exports.d.ts
import type { Subscription } from '../src/utils/Subscription'; Which is why this error is occurring, as confirmed by trace resolver:
|
PR to fix here: #1910 |
Thanks guys for your reactivity 🙏 |
That was fast 🚀 !! |
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
What is the current behavior?
When compiling a TypeScript project that has the
noImplicitAny
config set totrue
, then react-redux.ts
files are typechecked and result in a compilation errorI believe the
ts
files should be stripped from the final bundle that is uploaded to npm in order to avoid such ts config mismatch.What is the expected behavior?
There shouldn't be any compilation error.
Which browser and OS are affected by this issue?
N/A
Did this work in previous versions of React Redux?
The text was updated successfully, but these errors were encountered: