Introspect command failing

I'm setting up Drizzle for the first time, I'm trying to get the introspect command to run with mysql / planetscale. When I run introspect I get "Expected undefined or a fully resolved URL string to be returned for the "responseURL" from the "drizzle-kit/loader.mjs 'load'" function but got instance of String.". Has anyone seen this one before? package.json
"scripts": {
"introspect": "drizzle-kit introspect:mysql"
}
"scripts": {
"introspect": "drizzle-kit introspect:mysql"
}
Config
export default {
schema: './src/db/*',
out: './drizzle',
driver: 'mysql2',
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
},
} satisfies Config
export default {
schema: './src/db/*',
out: './drizzle',
driver: 'mysql2',
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
},
} satisfies Config
8 Replies
Andrii Sherman
Known isse starting from 0.19.0 drizzle-kit @alexblokh is working on fixing it
Julian1001
Julian1001OP2y ago
Ok, thanks
Andrii Sherman
do you have Windows?
Julian1001
Julian1001OP2y ago
No, I'm on Mac
Andrii Sherman
Try to install drizzle-kit@win and check if error will be still there this is out tag with fixes for this problem still testing
Julian1001
Julian1001OP2y ago
Will do, thanks I swapped it for that package but when I run the command I get "Cannot find package '@esbuild-kit/esm-loader'" If I install that I get TypeError: r.includes is not a function
Andrii Sherman
got it. Thanks for a feedback! looking into it will post all fixes updates in #announcements because there are a lot of similar requests so everyone will be updated
Julian1001
Julian1001OP2y ago
thanks
Want results from more Discord servers?
Add your server