Suddenly started getting a `TRPCClientError: Unexpected token '<', "<!DOCTYPE...` error
And my whole app can't run, I've been at it for the whole day. Using React Vite with the React Query integration
5 Replies
err TRPCClientError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at _TRPCClientError.from (chunk-JJSVPVKZ.js?v=ba80d384:1334:12)
at chunk-JJSVPVKZ.js?v=ba80d384:1865:42Caused by: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
ESlint throws an error on the frontend but doesnt point to anywhere in the code
It's stupid CORS issue. I hate CORS!
use nginx proxy
how did you fix the issue i do have same server and getting such error