VS Code TSServer behavior differs from TSC when using the persist middleware #2851
Unanswered
DaLukasDev
asked this question in
Q&A
Replies: 2 comments
-
Update: I narrowed it down to two vscode settings: "typescript.inlayHints.parameterNames.enabled": "all",
"typescript.inlayHints.variableTypes.enabled": true, Using only one of the two is fine but using them simultaneously throws the type error mentioned above. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've been experiencing this issue recently too—never encountered it in past projects. Looks like you've already done a lot of troubleshooting. Hopefully, something useful comes up soon 🙏 |
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
-
Hi all,
I have a weird issue creating a store.
The following code
Gives me a type error when using the persist middleware. (Without the persist middleware it is just fine):
However when I run tsc over this code. All is fine and no type errors are reported. Opening the same file in PHPStorm, results in no errors being shown.
When I change the AuthStoreActions to be possibly undefined:
VScode seems to be happy as well.
So this seems to be a VSC issue as I also fail to reproduce it in a codesandbox/TSPlayground...
Does anyone have had similar issues and maybe know how to remedy this?
edit:
Using following versions:
Beta Was this translation helpful? Give feedback.
All reactions