yinks
yinks16mo ago

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
yinks
yinksOP16mo ago
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
yinks
yinksOP16mo ago
ESlint throws an error on the frontend but doesnt point to anywhere in the code
No description
yinks
yinksOP16mo ago
It's stupid CORS issue. I hate CORS!
backbone
backbone16mo ago
use nginx proxy
Aadarsha
Aadarsha11mo ago
how did you fix the issue i do have same server and getting such error

Did you find this page helpful?