Ciantic
Ciantic2mo ago

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

Try 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
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?