megmut
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
Boy do I feel dumb now - what a nightmare trying to debug all that typescript 😂 Anyway, if anybody happens to come across the same thing, please check the relations closely as it's very easy to miss them when the tables are named similarly
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
Another relation I had declared was referencing the wrong table..
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
So I finally debugged the issue and it turned out to be the dumbest thing ever 😂
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
Eughhhhhh
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
I am using sveltekit and a few other bits of tech, so maybe that's the issue as the tsconfig extends sveltekit one and other stuff 😢 Anyway - will report here once I've found the root cause in case anybody else ever finds this
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
so.. even though the versions are the same for both orm and kit.. the typings are just nuked on my project
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
Even the type intersection
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
However, it works 100% fine 😦
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
Hey man - soo.. slightly frustrating: https://stackblitz.com/edit/stackblitz-starters-thhb1m?file=src%2Fexample.ts
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
Will make stackblitz tomorrow 🥱
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
yeah, single file didn't help 😦
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
I'm rebuilding a single schema file to try that now. Wondering if splitting each table and relations into it's own file isn't helping matters.
If no joy though, I'll go create an example on stackblitz! Cheers for the help so far, will report back when I have something
23 replies
DTDrizzle Team
•Created by thomasmol on 8/27/2023 in #help
Running migrate() in Sveltekit project
From memory, the --loader ts-node/esm is why you're getting 'file extension not found'
8 replies
DTDrizzle Team
•Created by thomasmol on 8/27/2023 in #help
Running migrate() in Sveltekit project
Here is my Migrate script from my sveltekit project
And I invoke it with:
8 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
And used like so:
export const db = drizzle(sql, { schema });
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
Regarding the exporting - I think so yes:
23 replies
DTDrizzle Team
•Created by megmut on 8/27/2023 in #help
Nested Relations Where has Zero Typings :confused:
Here's my relation:
23 replies