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

Did you find this page helpful?