#about mysql2 in nest js monorepo which is undefined
1 messages · Page 1 of 1 (latest)
btw that's not related with nestjs at all
what about
import * as mysql2 from 'mysql2/promise'
?
working . thanks. in drizzle docs they didn't do it correctly I guess. 😂
If this code is in TS, then the correct way depends on your tsconfig. But if that’s just ESM syntax, then it’s correct