Cloudflare Worker + Astro Deployment Issue

Running into an issue with deploying static assets in my Cloudflare Worker project using Astro. The deployment command (npm run deploy) that was working fine yesterday is now throwing this error:
const readdirp_1 = require("readdirp");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module
const readdirp_1 = require("readdirp");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module
Seems like there might be a dependency conflict with ESM/CommonJS modules. Has anyone run into this recently or knows a workaround? Any help appreciated!
5 Replies
bkyerv
bkyervOP•2w ago
i deleted node_modules folder and installed everything from anew but the issue persists
Walshy
Walshy•2w ago
Hey, we're aware and working on it
Walshy
Walshy•2w ago
Should be fixed with a re-install now
bkyerv
bkyervOP•2w ago
🔥🔥🔥

Did you find this page helpful?