-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting weird module issue #4
Comments
Seems like an ESM/CJS related error. Can you share a snippet of your code? |
I'm using the one from the example: import { mysqlGenerate } from "drizzle-dbml-generator";
import * as schema from "./src/lib/db/schema";
const out = "./schema.dbml";
const relational = true;
mysqlGenerate({ schema, out, relational }); |
Try setting (or adding) the {
// ...
"type": "module"
// ...
} You can also try using CJS' |
Problem is that setting |
You might be forced to use CJS syntax then, which this package should support. |
Having the same issue, I can't convert my entire project to use require(). |
I fixed this by using tsx instead of ts-node. |
trying to generate the dbml using default configurations throws this error
The text was updated successfully, but these errors were encountered: