© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
3 replies
mr nooli

introspection fails (Supabase)

I've got a large application originally written w/ nextjs and prisma, but due to it being large, the performance has massively reduced, so I'm doing a rewrite of the customer facing part in svelte and drizzle, I want to leave the primary db changes in the main app, but want to use drizzle for this so I can deploy on the edge...

When I do
npx drizzle-kit introspect
npx drizzle-kit introspect
I get back:

drizzle-kit: v0.21.1
drizzle-orm: v0.30.10

No config path provided, using default path
Reading config file '/Volumes/Primary/Code/eatess/cruncho-menu/drizzle.config.ts'
Pulling from ['public'] list of schemas

Using 'postgres' driver for database querying
[✓] 39  tables fetched
[⣟] 310 columns fetching
[✓] 24  enums fetched
[⣟] 0   indexes fetching
[⣟] 25  foreign keys fetching
/Volumes/Primary/Code/eatess/cruncho-menu/node_modules/drizzle-kit/bin.cjs:15899
              const onUpdate = fk4.update_rule.toLowerCase();
                                               ^

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at /Volumes/Primary/Code/eatess/cruncho-menu/node_modules/drizzle-kit/bin.cjs:15899:48
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v21.1.0
drizzle-kit: v0.21.1
drizzle-orm: v0.30.10

No config path provided, using default path
Reading config file '/Volumes/Primary/Code/eatess/cruncho-menu/drizzle.config.ts'
Pulling from ['public'] list of schemas

Using 'postgres' driver for database querying
[✓] 39  tables fetched
[⣟] 310 columns fetching
[✓] 24  enums fetched
[⣟] 0   indexes fetching
[⣟] 25  foreign keys fetching
/Volumes/Primary/Code/eatess/cruncho-menu/node_modules/drizzle-kit/bin.cjs:15899
              const onUpdate = fk4.update_rule.toLowerCase();
                                               ^

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at /Volumes/Primary/Code/eatess/cruncho-menu/node_modules/drizzle-kit/bin.cjs:15899:48
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v21.1.0


Whenever I rerun the command, the number of tables/columns it completes changes every time, sometimes it's 200 or so columns, sometimes it's more. Any idea what I'm missing?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Introspection fails sonb_build_array(" is not valid JSON
Drizzle TeamDTDrizzle Team / help
2y ago
Introspection error with pg
Drizzle TeamDTDrizzle Team / help
3y ago
Filtering out tables during introspection
Drizzle TeamDTDrizzle Team / help
15mo ago