Skip to content

Typescript and large Root store - The inferred type of this node exceeds the maximum length the compiler will serialize. #2115

Discussion options

You must be logged in to vote

No problem :)

My expectations about opening this thread was to allow others to find this problem if they were struggling.
In my case I managed to delay the problem by removing the withSetProp action from the models that don't use it, which pruned the type declarations enough for the typescript compiler to stop complaining.

If this ever becomes a problem again, I'll probably have to tweak those utilities and maybe pass the type annotations some other way to those generic actions (for example, by explicitly passing they keys of which setters I want to generate, and what are their types).

Thanks for taking the time to answer this. If I find some better solution in the future I'll post it her…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sergioisidoro
Comment options

@coolsoftwaretyler
Comment options

@sergioisidoro
Comment options

Answer selected by coolsoftwaretyler
@coolsoftwaretyler
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants