igor9silva
igor9silva2mo ago

I'm having an issue with the CLI, it's

I'm having an issue with the CLI, it's suddenly not computing types properly anyone has seem something like that? I had convex/taskActions.tsx working fine. I cloned it as taskEvents.tsx (exact same file content) and it wont load types I them touched taskActions to do a couple tests and now it won't load types as well. Other files are working as expected
No description
10 Replies
erquhart
erquhart2mo ago
Do you have any other type errors anywhere besides this one?
igor9silva
igor9silvaOP2mo ago
nope it's actually working fine just the types are broken
igor9silva
igor9silvaOP2mo ago
this is the diff
No description
No description
erquhart
erquhart2mo ago
So if you hover api, the other top level properties are fully typed and only taskEvents is generic, is that right
igor9silva
igor9silvaOP2mo ago
hmm, I found out
erquhart
erquhart2mo ago
I've seen something sort of like this when importing from one convex file to another, especially when it involves the the http file. Didn't take the time to chase down the root issue though oh?
igor9silva
igor9silvaOP2mo ago
auto-import used ~/ instead of ./
No description
igor9silva
igor9silvaOP2mo ago
they're supposed to resolve to the exact same path but for some reason TS didn't like the ~ one
igor9silva
igor9silvaOP2mo ago
ok now
No description
igor9silva
igor9silvaOP2mo ago
well, I'll try to understand why thanks for reaching

Did you find this page helpful?