iDarkLightning
iDarkLightning
Explore posts from servers
SSolidJS
Created by iDarkLightning on 5/24/2024 in #support
Issues with creating a new solidstart app
No description
3 replies
TTCTheo's Typesafe Cult
Created by iDarkLightning on 7/20/2023 in #questions
Root not-found.tsx with multiple root layouts
3 replies
TTCTheo's Typesafe Cult
Created by iDarkLightning on 1/25/2023 in #questions
TSConfig Path Alias doesn't resolve in monorepo
Trying to convert my repo to a turborepo, using create-t3-turbo as a baseline. Almost everything worked as expected, until I tried to add custom path aliases inside packages/api. That led to the following error.
../../packages/api/src/trpc/router/meeting/meeting-attendance-link.ts:2:0
Module not found: Can't resolve '@/common/grant-rewards'
1 | import { applyLinkSchema } from "@meetxl/shared/schemas/link-schemas";
> 2 | import { grantRewards } from "@/common/grant-rewards";
3 | import { AttendanceLinkAction } from "@prisma/client";
4 | import { TRPCError } from "@trpc/server";
5 | import { randomBytes } from "crypto";

Import trace for requested module:
../../packages/api/src/trpc/router/meeting/meeting-attendance.ts
../../packages/api/src/trpc/router/meeting/index.ts
../../packages/api/src/trpc/router/index.ts
../../packages/api/index.ts
./src/pages/api/trpc/[trpc].ts

https://nextjs.org/docs/messages/module-not-found
../../packages/api/src/trpc/router/meeting/meeting-attendance-link.ts:2:0
Module not found: Can't resolve '@/common/grant-rewards'
1 | import { applyLinkSchema } from "@meetxl/shared/schemas/link-schemas";
> 2 | import { grantRewards } from "@/common/grant-rewards";
3 | import { AttendanceLinkAction } from "@prisma/client";
4 | import { TRPCError } from "@trpc/server";
5 | import { randomBytes } from "crypto";

Import trace for requested module:
../../packages/api/src/trpc/router/meeting/meeting-attendance.ts
../../packages/api/src/trpc/router/meeting/index.ts
../../packages/api/src/trpc/router/index.ts
../../packages/api/index.ts
./src/pages/api/trpc/[trpc].ts

https://nextjs.org/docs/messages/module-not-found
This is my tsconfig.json for the packages/api package:
{
"extends": "../../tsconfig.json",
"include": ["src", "index.ts", "transformer.ts"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
{
"extends": "../../tsconfig.json",
"include": ["src", "index.ts", "transformer.ts"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
The compilerOptions match apps/web exactly, but while it works in apps/web it very much does not work in packages/api.
10 replies
TTCTheo's Typesafe Cult
Created by iDarkLightning on 11/25/2022 in #questions
switch account flow with google nextauth
Is it possible to allow users to change their account with next-auth? IE they click a button, and they're taken to the google "select account" page to choose a different account?
5 replies
TTCTheo's Typesafe Cult
Created by iDarkLightning on 11/12/2022 in #questions
motion one doesn't allow for initial values?
motion one (https://motion.dev) seems very cool and all, but does it not have an API for initial values (similar to framer-motion)? its quite possible that I simply am making up an issue here, but surely if I want a fade in, the solution isn't to by default have the opacity of everything be 0 and then later change that in JS world? sorry if I'm just missing something and being stupid :) currently using it with Astro.
2 replies
TTCTheo's Typesafe Cult
Created by iDarkLightning on 11/5/2022 in #questions
Implement Recurring Meetings
I am working on a (slightly more than) meeting management app. I want to implement recurring meetings (as in every week, every day, etc). I am not quite sure how to go about it though. Should I just store a start time, duration, and the interval and simply derive it when I need to? Or should I store a start time, end time, and duration and have some form of scheduled event that actually updates the DB? Maybe something else entirely? I do also need some other actions to be done after a meeting finishes. I'd love some suggestions on how to tackle this. (Am on t3 stack)
36 replies
TTCTheo's Typesafe Cult
Created by iDarkLightning on 10/21/2022 in #questions
datepicker recommendations
Hi, does anyone have suggestions for a datepicker that supports time and works on all the basic browsers? It'd be great if it's also decently stylable (tailwind)
11 replies
TtRPC
Created by iDarkLightning on 10/16/2022 in #❓-help
Infer the type of ctx for a specific procedure
Let's say I had a helper function that I wanted to pass the context to, I can't use the default Context type, because this helper is only used for procedures that add things to the context. Is it possible to infer the type of the context after a specific procedure runs?
1 replies
TTCTheo's Typesafe Cult
Created by iDarkLightning on 9/29/2022 in #questions
What is the way to solve google not giving me my avatar half the time?
When a user logs in with google, frequently enough the avatar doesn't resolve because google rate limits. I'm not entirely sure why, but I really don't want to get images and put them on a bucket somewhere, so is there any decent way to tackle this?
1 replies