Node compat: Drizzle Kit - Dynamic require of "fs" is not supported
Try this:
like this:
import { generateDrizzleJson } from "npm:drizzle-kit/api";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$ 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