Open ryoid opened 4 months ago
After some tinkering it seems like the issue is because the readable-stream library use require('process/')
, with the trailing slash. Patching unenv
to also include process/
allows build to complete. But I'm not sure if there any implications of this.
Alternatively aliasing it also works.
alias: {
"process/": "process"
}
hey, have you managed fix it?
Environment
nitropack@2.9.7
readable-stream@4.4.0
Reproduction
Run build in Stackblitz
Made from starter template and adding
readable-stream
Describe the bug
Unable to build for Cloudflare Pages with
readable-stream
Additional context
Related Issues
Logs