Support for NodeNext

Hello, DrizzleStudio and migrations dont work for me because i use "moduleResolution": "NodeNext" in my tsconfig.json. I use this because of monorepo and building packages with tsc. This module resolution requires importing ts files as .js. The error it throws is this Error: Cannot find module './schema.js' This is how the the file looks
import { schema } from "./schema.js";

export const {
conversionRates,
kyselyMigrationLock,
kyselyMigrations,
productPageVisits,
shopVisits,
storeClickThroughs,
} = schema;
import { schema } from "./schema.js";

export const {
conversionRates,
kyselyMigrationLock,
kyselyMigrations,
productPageVisits,
shopVisits,
storeClickThroughs,
} = schema;
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server