MrDiamond
MrDiamond
Explore posts from servers
CDCloudflare Developers
Created by MrDiamond on 10/21/2023 in #workers-help
globalThis.XMLHttpRequest is not a constructor
I switched to render so I don't have to deal with all these trade-offs
17 replies
CDCloudflare Developers
Created by MrDiamond on 10/21/2023 in #workers-help
globalThis.XMLHttpRequest is not a constructor
Uncaught TypeError: fs_1.default.readdirSync is not a function how much code do i need to replace??
17 replies
CDCloudflare Developers
Created by MrDiamond on 10/21/2023 in #workers-help
globalThis.XMLHttpRequest is not a constructor
Ok nvm, I just needed to export default app
17 replies
CDCloudflare Developers
Created by MrDiamond on 10/21/2023 in #workers-help
globalThis.XMLHttpRequest is not a constructor
Well I cant serve the server without it afaik
17 replies
CDCloudflare Developers
Created by MrDiamond on 10/21/2023 in #workers-help
globalThis.XMLHttpRequest is not a constructor
The package "node:stream/promises" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
The package "node:stream/promises" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
There is also this, but I don't know where to specify this option.
17 replies
CDCloudflare Developers
Created by MrDiamond on 10/21/2023 in #workers-help
globalThis.XMLHttpRequest is not a constructor
Got the hono server working, but now publish is throwing a different error:
node_modules/@hono/node-server/dist/listener.js:25:30: ERROR: Could not resolve
"node:stream/promises"
node_modules/@hono/node-server/dist/listener.js:25:30: ERROR: Could not resolve
"node:stream/promises"
17 replies
CDCloudflare Developers
Created by MrDiamond on 10/21/2023 in #workers-help
globalThis.XMLHttpRequest is not a constructor
They send interactions with my bot to my /interactions endpoint, after that I can handle it and respond
17 replies
CDCloudflare Developers
Created by MrDiamond on 10/21/2023 in #workers-help
globalThis.XMLHttpRequest is not a constructor
I would assume express uses XHR/http then, do you know of any alternatives?
17 replies