-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[RTK v2.0] createApi (React) exceeds the maximum length the compiler will serialize #3591
Comments
Two questions:
|
Oops! I apologize. I should have added the necessary TypeScript configurations needed to get this issue. // tsconfig.json
{
// ...
"moduleResolution": "Node16", // Or "NodeNext",
"declaration": true,
// ...
} It only occurs with Now that I'm writing it out, it might be similar to #3568 and there's some type that needs to be exported for the new ES6 module stuff. No changes on using a different type other than |
…le resolutions. fixes reduxjs#3591
…le resolutions. fixes reduxjs#3591
I think this pull request resolves the issue: #3592 It did fix it for me. |
Version:
2.0.0-beta.0
Hello, I'm having an issue inferring types when using
createApi
from@reduxjs/toolkit/query/react
.I get this issue with a very minimal setup.
Code Sandbox link
I can't find the cause of it yet. Seems like there's some type recursion happening somewhere in
enhanceEndpoints
when the react module is used? Maybe someone has a better clue.The text was updated successfully, but these errors were encountered: