Weird error in trpc procedure
I am writing a simple create mutation but im getting some weird ts error. I tried restarting the ts server but no luck
8 Replies
its an eslint error not ts
Ive had this problem recently too where ts has everything right but eslint says theres anys when theyre arent
probably some eslint config changes you can try
also restarting eslint server
im using the same eslint config which comes with create t3 app
eslint is useful but pain in the ass
try restarting both eslint and ts servers when this happens
usually resolves the problem
well I opened the editor again and it works
is this the only way??
Yeah kinda in vs code you can type ‘>’ on the top search bar and find restart typescript server to restart, just 2 mins work !! Just takes 10 secs
Sometimes restarting ts server is not enough and you might need to close / reopen vs code
Have you found a definitive fix for it by any chance?
no sorry