Jumaron
Jumaron
DTDrizzle Team
Created by Jumaron on 10/16/2024 in #help
New critical Build error drizzle 0.35.0 with Cloudflare
EDIT: FIXED WITH VERSION 0.35.2 Since updating from 0.34.1 to 0.35.0 i encounter this error when i try to build the project localy or on Cloudflare itself, on version 0.34.1 the issue does not exist.
Using @sveltejs/adapter-cloudflare
X [ERROR] Could not resolve "fs"

node_modules/@neon-rs/load/dist/index.js:28:32:
28 │ const fs = __importStar(require("fs"));
╵ ~~~~

Cannot use "fs" when deploying to Cloudflare.


X [ERROR] Could not resolve "child_process"

node_modules/detect-libc/lib/detect-libc.js:6:29:
6 │ const childProcess = require('child_process');
╵ ~~~~~~~~~~~~~~~

Cannot use "child_process" when deploying to Cloudflare.


X [ERROR] Could not resolve "fs"

node_modules/detect-libc/lib/filesystem.js:6:19:
6 │ const fs = require('fs');
╵ ~~~~

Cannot use "fs" when deploying to Cloudflare.
Using @sveltejs/adapter-cloudflare
X [ERROR] Could not resolve "fs"

node_modules/@neon-rs/load/dist/index.js:28:32:
28 │ const fs = __importStar(require("fs"));
╵ ~~~~

Cannot use "fs" when deploying to Cloudflare.


X [ERROR] Could not resolve "child_process"

node_modules/detect-libc/lib/detect-libc.js:6:29:
6 │ const childProcess = require('child_process');
╵ ~~~~~~~~~~~~~~~

Cannot use "child_process" when deploying to Cloudflare.


X [ERROR] Could not resolve "fs"

node_modules/detect-libc/lib/filesystem.js:6:19:
6 │ const fs = require('fs');
╵ ~~~~

Cannot use "fs" when deploying to Cloudflare.
4 replies
DTDrizzle Team
Created by Jumaron on 8/9/2023 in #help
Planetscale Serverless for Relational queries
Currently it is only supported to use mysql2 for using the Relational queries feature with Planetscale, with that the advantage of using the serverless driver with planetscale vanishes. Would it be possible to implement the planetscale serverless driver instead of mysql2? Thanks for any answer 🙂 Edit: Yes you can use it with PlanetScale driverless just like normel
40 replies