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'
    }


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
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

//tsconfig.json
{
  "compilerOptions": {
  ...
  // Solution is to update es5 to ES2015
  "target": "es5",
  }
}


"target": "ES2015",
Was this page helpful?