miljan-code / drizzle-next-auth

An example setup project for Drizzle ORM, PlanetScale and NextAuth
52 stars 6 forks source link

On initial db:push typescript throws errors. #2

Open timmeade opened 6 months ago

timmeade commented 6 months ago

typscript config set to es5 results in

    {
      detail: undefined,
      id: '',
      location: [Object],
      notes: [],
      pluginName: '',
      text: 'Transforming const to the configured target environment ("es5") is not supported yet'
    },
....

Changing tsconfig.ts to:

    "target": "es6",

fixes it.