is possible to combine next-minimal-starter with react-router-dom ?
Hi, I'm trying to combine https://github.com/trpc/trpc/tree/main/examples/next-minimal-starter and react-router for a spa like is described in https://colinhacks.com/essays/building-a-spa-with-nextjs and I'm getting xt-dev.js:20 TRPCClientError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at TRPCClientError.from (transformResult-6fb67924.mjs:13:1)
at eval (httpBatchLink.mjs:211:48)
. I tried with create-t3-app too which I got the same result. Do you think what I'm doing is feasible ? react-router 6.10 and next with trpc ?
at TRPCClientError.from (transformResult-6fb67924.mjs:13:1)
at eval (httpBatchLink.mjs:211:48)
. I tried with create-t3-app too which I got the same result. Do you think what I'm doing is feasible ? react-router 6.10 and next with trpc ?
GitHub
Move Fast and Break Nothing. End-to-end typesafe APIs made easy. - trpc/examples/next-minimal-starter at main ยท trpc/trpc
Colin McDonnell @colinhacks
Next.js is awesome. React Router is awesome. Why is it so hard to get them to play nice?

Solution
This means your backend is returning a HTML document, most likely the index.html page. It's very common with incorrectly set up web servers