WordPress import crashes with 'module is not defined' — sax CJS incompatible with workerd" #1754
khoinguyenpham04
announced in
Roadmap
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This Roadmap discussion mirrors #573: WordPress import crashes with 'module is not defined' — sax CJS incompatible with workerd".
Use this discussion to upvote the roadmap item and discuss priority, use cases, and product feedback. Keep implementation tracking, reproduction details, and PR-specific feedback on the source issue.
bug,area/core,roadmap/1.0,roadmap/migration-onboardingOriginal Issue
Description
WordPress import in the admin UI crashes with "module is not defined" when using the Cloudflare adapter in dev mode. Navigating to /_emdash/admin/import/wordpress or attempting a file-based WXR import both trigger the same error.
Steps to reproduce
Create a new project with the Cloudflare adapter: npm create emdash@latest (select marketing-cloudflare template)
Run npx emdash dev
Navigate to http://localhost:4321/_emdash/admin/import/wordpress
Page crashes with "module is not defined"
Alternatively, try uploading a WordPress WXR export file — same error
Environment
emdash: 0.5.0
@emdash-cms/cloudflare: 0.5.0
astro: 6.1.6
@astrojs/cloudflare: 13.1.9
wrangler: 4.83.0
react: 19.2.4
Node.js: (run node -v and paste)
OS: macOS
Logs / error output
All reactions