niels
Explore posts from serversTTCTheo's Typesafe Cult
•Created by niels on 1/17/2024 in #questions
Monorepo UI package has no styling when imported
![No description](https://cdn.answeroverflow.com/1197078743429169172/image.png)
95 replies
TTCTheo's Typesafe Cult
•Created by niels on 1/15/2024 in #questions
ESLint: Failed to load config "@repo/eslint-configuration/.eslintrc.nextjs.cjs" to extend from.
I'm working on a Turborepo with an ESLint package. This error gets raised at
build
and not at dev
. Any help welcome.
apps/next-app-boilerplate/.eslintrc.cjs
"@repo/eslint-configuration": "*"
is added as a devDependency to apps/next-app-boilerplate/package.json
packages/eslint-configuration/.eslint.nextjs.cjs
packages/eslint-configuration/package.json
4 replies
TTCTheo's Typesafe Cult
•Created by niels on 1/11/2024 in #questions
[Turborepo] TypeError: Cannot read properties of undefined (reading 'push')
I'm not sure what's causing this error...
Using Turborepo.
apps/www/tsconfig,json
apps/www/package,json
packages/typescript-config/package,json
packages/typescript-config/tsconfig.nextjs,json
2 replies
TTCTheo's Typesafe Cult
•Created by niels on 12/21/2023 in #questions
Help me convince my client to move from Nuxt (Vue) to Next.js
What are some really valid points to prove that Next.js is significantly better than Nuxt?
2 replies
TTCTheo's Typesafe Cult
•Created by niels on 12/13/2023 in #questions
Shadcn DropdownMenu - Property 'className' does not exist on type 'Omit<DropdownMenuSubTriggerProps
Local is building and starting without any issues. This only happens on Vercel's deployment
Property 'className' does not exist on type 'Omit<DropdownMenuSubTriggerProps & RefAttributes<HTMLDivElement>, "ref"> & { inset?: boolean | undefined; }'
1 replies
TTCTheo's Typesafe Cult
•Created by niels on 8/22/2023 in #questions
Some domain philosophy
I am currently trying to create my own start up software agency
Sadly, the
.com
domain was already taken.
Here are my options right now;
- .nl
, since I'm from The Netherlands and I'll focus on Dutch audience for the first bit
- .io
as it is a pretty common tech related domain. Research shows that along with e.g. .com
, .io
domains are in the same list of top level domains (gTLD) by Google (src: https://blog.hubspot.com/website/io-domains)
- .in
, this would be 'fun' as my start up's name ends with 'in'. Though I'm not sure if .in
domains are also top level domain. I believe it's under country specific (ccTLD) for Indonesia. Would this matter? Would this downgrade me in search results for e.g. Netherlands or international?
Would love to hear your thoughts on this!9 replies
TTCTheo's Typesafe Cult
•Created by niels on 7/7/2023 in #questions
Source for creating my own create-x-app CLI command?
Is there any good source that dives into creating a CLI command such as create-t3-app? Would be very useful for the company I work at!
3 replies
TTCTheo's Typesafe Cult
•Created by niels on 6/28/2023 in #questions
Next.js / React international physical conferences?
Does anyone know of any good upcoming Next.js / React international physical conferences?
2 replies
TTCTheo's Typesafe Cult
•Created by niels on 6/27/2023 in #questions
useQuery endless fetching loop
![](https://cdn.answeroverflow.com/1123140008258314290/image.png)
15 replies
TTCTheo's Typesafe Cult
•Created by niels on 6/26/2023 in #questions
Zod z.infer, z.output and z.input
How do they differ?
4 replies
TTCTheo's Typesafe Cult
•Created by niels on 6/26/2023 in #questions
snake_case in Zod and/or Class
I am working with a Python Django back-end. It'd be most efficient to mimic the Django DB model fields in Zod to make communicating with the API more accessible.
e.g. in Django I might have a
Product.long_description
field. Now, in my Next app I have a class Product
with some useful getter methods for example. Ideally, I would have a Product.longDescription
in TS
To make creating and reading API responses <> Product
classes more efficient, it'd be most efficient to use snake_case so I don't need to worry about re-assigning every API response field to a camelCase variable/property.
Basically my question is. Is it, in this case, really a sin to use snake_case in TS
?22 replies
TTCTheo's Typesafe Cult
•Created by niels on 6/19/2023 in #questions
Type for a JSON object or API response?
Is
Object
good enough?10 replies
TTCTheo's Typesafe Cult
•Created by niels on 6/8/2023 in #questions
server side localstorage?
Any way to access local storage or cookies server side? I have some light/dark theming in my app, but when loading, there's a blink of the light theme even when it says dark in localStorage for example. Is there any way to avoid this?
12 replies
TTCTheo's Typesafe Cult
•Created by niels on 6/4/2023 in #questions
Vercel Build, Module not found: Can't resolve path/to/Component
Builds fine locally...
2 replies
TTCTheo's Typesafe Cult
•Created by niels on 6/3/2023 in #questions
getServerAuthSession at any place crashes my app. 5000+ errors per second!
Below, I have my server component for rendering a hamburger menu based on whether the user is authenticated.
When I check the Network tab,
main-app.js
stays in an endless waterfall of downloading content.
When I check the Console tab, this error is raised infinitely. It raises this error around 5.000 per second!
The server console seems fine with no erros at all.
Could anyone please explain to me what's going on or what I'm implementing wrong?16 replies
TTCTheo's Typesafe Cult
•Created by niels on 5/31/2023 in #questions
useSession has an empty user object {}
When using the useSession hook, session.data contains
{ user: {}, expires: '2023-06-30T20:30:42.181Z' }
this is my auth options:
4 replies
TTCTheo's Typesafe Cult
•Created by niels on 5/26/2023 in #questions
t3-env issues with Vitest test cases
![No description](https://cdn.answeroverflow.com/1111542866666328084/image.png)
69 replies
TTCTheo's Typesafe Cult
•Created by niels on 5/19/2023 in #questions
default NextAuth middleware and custom middleware conflicting
When I add this function middleware, the nextauth middleware stops working. I need the nextauth middleware to redirect to
http://localhost:3000/login?callbackUrl=http%3A%2F%2Flocalhost%3A3000%2Fproducts
when a user is not signed in.2 replies