Turbo Problem
Unanswered
Podenco Canario posted this in #help-forum
Podenco CanarioOP
Hi all.
Anybody else running into this:
⨯ ./node_modules/.pnpm/@auth+drizzle-adapter@1.0.0/node_modules/@auth/drizzle-adapter/lib/mysql.js:3:1
Module not found: Can't resolve 'crypto'
1 | import { and, eq } from "drizzle-orm";
2 | import { int, timestamp, primaryKey, varchar, mysqlTable, index, } from "drizzle-orm/mysql-core";
4 | export const mysqlUsersTable = mysqlTable("user", {
5 | id: varchar("id", { length: 255 })
6 | .primaryKey()
when using
Running normally it works fine...
Anybody else running into this:
⨯ ./node_modules/.pnpm/@auth+drizzle-adapter@1.0.0/node_modules/@auth/drizzle-adapter/lib/mysql.js:3:1
Module not found: Can't resolve 'crypto'
1 | import { and, eq } from "drizzle-orm";
2 | import { int, timestamp, primaryKey, varchar, mysqlTable, index, } from "drizzle-orm/mysql-core";
3 | import { randomUUID } from "crypto";| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 | export const mysqlUsersTable = mysqlTable("user", {
5 | id: varchar("id", { length: 255 })
6 | .primaryKey()
when using
--turbo ? Running normally it works fine...
3 Replies
Dwarf Crocodile
I think there is a problem currently with crypto in turbopack
https://github.com/vercel/next.js/issues/64464
https://github.com/vercel/next.js/issues/64464
Podenco CanarioOP
Yeah seems so...
And I think it's coming from:
in auth-ts using the postres drizzle adapter.
{
session: {
strategy: 'jwt',
},
} in auth-ts using the postres drizzle adapter.