Drizzle Kit Push & Generate gives weird error

I get the following error:
{
detail: undefined,
id: '',
location: [Object],
notes: [],
pluginName: '',
text: 'Transforming destructuring to the configured target environment ("es5") is not supported yet'
}
{
detail: undefined,
id: '',
location: [Object],
notes: [],
pluginName: '',
text: 'Transforming destructuring to the configured target environment ("es5") is not supported yet'
}
the full code is here -> https://github.com/deadcoder0904/next-13-lucia-auth-drizzle-turso-sqlite-magic-link/tree/main pnpm db:push & pnpm db:generate don't work for some reason.
GitHub
GitHub - deadcoder0904/next-13-lucia-auth-drizzle-turso-sqlite-magi...
Simple Demo of Lucia Auth using Drizzle ORM, Turso Tech (SQLite) & Resend (Transactional Emails) to make Magic Link Authentication work - GitHub - deadcoder0904/next-13-lucia-auth-drizzle-t...
Solution:
This fix seemed to work ```ts //tsconfig.json {...
Jump to solution
3 Replies
Andrii Sherman
Andrii Sherman•15mo ago
cc @alexblokh @bloberenober
Fyzz
Fyzz•15mo ago
Any update on this im getting this error as well
Solution
Fyzz
Fyzz•15mo ago
This fix seemed to work
//tsconfig.json
{
"compilerOptions": {
...
// Solution is to update es5 to ES2015
"target": "es5",
}
}
//tsconfig.json
{
"compilerOptions": {
...
// Solution is to update es5 to ES2015
"target": "es5",
}
}
"target": "ES2015",
Want results from more Discord servers?
Add your server