Type Errors in Sample Example
I'm following this Example to create a sample form (https://tanstack.com/form/latest/docs/framework/react/examples/simple) and noticed that
form.Subscribe
has type errors in the selector
and children
prop, I can reproduce this in my local as well. Is the example incorrect or did the API change? Looking for an easy way to create a Submit button for a form, thanks!6 Replies
xenial-black•2y ago
What version of TypeScript?
extended-salmonOP•2y ago
4.2, let me check if upgrading ts will fix it
Tries upgrading to 5.1, getting the same errors, did the selectors API change? Do you know why the example have type errors?
In case it's not clear, I noticed type errors in the Website IDE and my local.
I found a work around which doesn't use form.Subscribe, I'm unblocked on this, but just for my knowledge is this an issue with the Website IDE or the API types?
xenial-black•2y ago
Almost certainly not the API types
Otherwise our CI/CD would fail
extended-salmonOP•2y ago
Gotcha, I see type errors in the website ide, where does the ts version get inferred from here? I noticed there is no typescript in package.json

xenial-black•2y ago
There's no TS in the package.json??
Blech
extended-salmonOP•2y ago
Yes, I see a tsconfig but no ts in package.json