Jan Sedloň
Jan Sedloň
DTDrizzle Team
Created by Jan Sedloň on 5/31/2024 in #help
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;
1 replies