m1aw
m1aw
TTCTheo's Typesafe Cult
Created by m1aw on 9/19/2024 in #questions
Vercel deployment: [cause]: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
Yeah, couldn't figure out what was going on, might open a bug report later, since I can reproduce on the t3 setup by default. No idea tbh, but for now just making a random tRPC request before fixes the issues so that's what we are going to roll with.
12 replies
TTCTheo's Typesafe Cult
Created by m1aw on 9/19/2024 in #questions
Vercel deployment: [cause]: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
What are you menat to do instead?
12 replies
TTCTheo's Typesafe Cult
Created by m1aw on 9/19/2024 in #questions
Vercel deployment: [cause]: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
This is the root provider that's default with t3
<html lang="en" className={`${GeistSans.variable}`}>
<body>
<TRPCReactProvider>{children}</TRPCReactProvider>
</body>
</html>
<html lang="en" className={`${GeistSans.variable}`}>
<body>
<TRPCReactProvider>{children}</TRPCReactProvider>
</body>
</html>
12 replies
TTCTheo's Typesafe Cult
Created by m1aw on 9/19/2024 in #questions
Vercel deployment: [cause]: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
Oh
12 replies
TTCTheo's Typesafe Cult
Created by m1aw on 9/19/2024 in #questions
Vercel deployment: [cause]: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
Fuck sake i'ts the await ins't it?
12 replies
TTCTheo's Typesafe Cult
Created by m1aw on 9/19/2024 in #questions
Vercel deployment: [cause]: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
So I can reproduce this on the base create t3 app. Why does removing
const hello = await api.post.hello({ text: "from tRPC" });
const hello = await api.post.hello({ text: "from tRPC" });
Cause the server to crash on build? What in the world is happening here?
12 replies