When loading the app and trying to authenticate with passport the following error is thrown from the schema file, or the services if i comment out the line that breaks
Module parse failed: Unexpected token (28:7)
web:dev: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
web:dev: | });
web:dev: |
web:dev: > export type User = typeof users.$inferSelect;
web:dev: | export type NewUser = typeof users.$inferInsert;
web:dev: |
web:dev:
web:dev: Import trace for requested module:
web:dev: ../../packages/database/src/schema.ts
web:dev: ../../packages/database/src/index.ts
web:dev: ./src/libs/auth/strategies.ts
web:dev: ./src/pages/api/auth/login.ts
Expected behavior
No response
Environment & setup
Monorepo with nextjs app with passport as auth and database and services packages. It worked fine before switching from prisma to drizzle
What version of
drizzle-orm
are you using?^0.29.2
What version of
drizzle-kit
are you using?^0.20.8
Describe the Bug
When loading the app and trying to authenticate with passport the following error is thrown from the schema file, or the services if i comment out the line that breaks
Expected behavior
No response
Environment & setup
Monorepo with nextjs app with passport as auth and database and services packages. It worked fine before switching from prisma to drizzle