TS 7056 (The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed) while creating a store #2580
Unanswered
NathanAP
asked this question in
Help and Questions
Replies: 1 comment
-
Also happening to me any solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm trying to create a store in my project, but I keep getting ts 7056 (The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed) on its declaration. Any idea on what I could do?
This is part of my code:
I can get rid of the problem if I
1 - remove the type on my state;
2 - remove all my getters;
3 - remove my custom classes on type.
Not really sure what I should do because I have 5 others stores and all of them are complex enough to be compared to this one...
Edit: I updated the print to the correct one. Twice.
Beta Was this translation helpful? Give feedback.
All reactions