Closed blake-regalia closed 4 months ago
We are troubleshooting a similar problem with node.js environment right now, hopefully have a solution soon.
Did versions 1.1.2 and earlier work for you, or do you see the same issue there?
Please let us know if the above fix does not resolve your issues. It should as we removed the polyfill.
Describe the bug We seem to be encountering an issue with node.js due to shadejs build that assume the environment is the browser and is forcing node polyfills, overwriting the
fetch
global and leading to this error:Inspecting
fetch
reveals the polyfill:To Reproduce Try importing the ESM in node.js and attempt to perform
fetch()
.Expected behavior Don't overwrite globals in node.js environment. Should be exporting ESM and use the
"exports"
package.json feature.