stillmotion
Explore posts from serversTTCTheo's Typesafe Cult
•Created by stillmotion on 8/22/2023 in #questions
Why does vercel strip out authorization headers?
Ah, the issue was a www. redirect issue
2 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/10/2023 in #questions
Exporting prisma types from turborepo package
Ah such a subtle bug that took too long to figure out. I have two db packages that generate two different prisma clients. Because pnpm uses symlinked node_modules for workspaces, one db package was overwriting the other, so the one that got overwritten was exporting PrismaClient: any, which made it seem like all the types weren't being exported.
3 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
I've narrowed it down to commenting out this part of the .eslintrc.cjs:
18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
yeah i'll check
18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
Nothing out of the ordinary, so i'm assuming it's a config issue
18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
And here's an example of my env.mjs
18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
Here's an example output:
18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
I cleared my next cache and the error finally started to show inline in vscode. However, when I hover over the
env
import, it still shows the valid type. Running npm lint
still errors.18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
The fact VSCode can see the type, but eslint can't see it is a sign eslint isn't configured correctly
18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
just the one .cjs file
18 replies
TTCTheo's Typesafe Cult
•Created by stillmotion on 5/8/2023 in #questions
Error: npm lint not seeing env type
Yeah it's exactly that. I've copy pasted it from the t3ca repo
18 replies