whatplan
Explore posts from serversDTDrizzle Team
•Created by whatplan on 9/22/2023 in #help
`tablesFilter` cli arg "unknown option"
from the 'help' message
but I can't seem to figure out how to use it
any help greatly appriciated thank you
22 replies
DTDrizzle Team
•Created by whatplan on 5/28/2023 in #help
in drizzle.config.ts: "Cannot use import statement outside a module"
happens when I try to
push
env.mjs zod validates the raw process.env
any assistance is very much appreciated thanks9 replies
TTCTheo's Typesafe Cult
•Created by whatplan on 5/11/2023 in #questions
turborepo: bin of local package not resolving properly
/packages/next-typesafe-url/package.json
/turbo.json
Issue:
in my example app, I import the package
the library code is imported and runs fine, except whenever I run npx next-typesafe-url to use my cli it doesnt go the the
dist
folder I have listed under bin
in my package.json
any help is appreciated thanks1 replies
TTCTheo's Typesafe Cult
•Created by whatplan on 3/1/2023 in #questions
Client Side Routing to specific route causes 'too many rerenders', but a page reload works fine
Going straight to link and getting brand new page from server works fine
using next
Link
component to route client side causes Error: Too many re-renders.
only 1 specific page, all others work and this page is nearly identical to others in terms of functionality2 replies
TTCTheo's Typesafe Cult
•Created by whatplan on 2/23/2023 in #questions
"Unsafe call of an `any` typed value." but everything is typed
2 replies
TTCTheo's Typesafe Cult
•Created by whatplan on 2/22/2023 in #questions
"The AWS Access Key Id you provided does not exist in our records."..but I have the right access key
Trying to use the S3 SDK.
env:
❌ tRPC failed on wasabi.getObjects: The AWS Access Key Id you provided does not exist in our records.I deleted and recreated the access keys multiples times making sure they were copied over perfectly. Its such a dumb error because its clear whats wrong, the access key is invalid. But I know its the one I got from wasabi... Any help is appriciated thanks
2 replies
TTCTheo's Typesafe Cult
•Created by whatplan on 12/24/2022 in #questions
NextAuth-Try signing in with a different account
1 replies
TTCTheo's Typesafe Cult
•Created by whatplan on 12/23/2022 in #questions
Confused on types of prisma responses, and how to access the data inside.
The NextAuth 'Account' model in prisma has a 'access_token' property that I need to access for a API call on the server.
However, the only property I can access in the trpc context is the "session" model.
So, what I am doing is querying users for the user that has the session from the context, then getting the account array from that user and getting the account from there.
(1st image)
However, I am running into some issues mainly with the type of what prisma calls return back.
When I hover I get this big type (2nd image) that appears to have a "accounts" property, but then when I hover over accounts I dont get the "Account[]" I expect, instead some long obscure type (3rd image)
however, when simply return the prisma result from trpc (4th image), and do the same thing as before with getting the account on client (5th image) everything works, but id like to keep this all on the server if possible so this isnt ideal.
Im pretty new and probably doing something wrong, any help is greatly appreciated thanks
8 replies