CianticC
Denoβ€’9mo ago
Ciantic

Node compat: Drizzle Kit - Dynamic require of "fs" is not supported

Try this:

import { generateDrizzleJson } from "npm:drizzle-kit/api";


like this:

$ deno       

Deno 2.4.0
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.

> import { generateDrizzleJson } from "npm:drizzle-kit/api";
Uncaught Error: Dynamic require of "fs" is not supported
Was this page helpful?