Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Conversation

@MrSwitch
Copy link
Contributor

@MrSwitch MrSwitch commented Mar 8, 2022

This seems to resolve an issue we had bundling Typescript with webpack....

When running the bundle we got the following bug, because the node-fetch was incorrectly bundled.

{
	"errorType": "TypeError",
	"errorMessage": "fetch is not a function",
	"stack": [
		"TypeError: fetch is not a function","    at Hub.request (/var/task/app.js:2493:22)",
		"    at Hub.login (/var/task/app.js:2523:27)",
		"    at Hub.api (/var/task/app.js:2548:35)",
		"    at Runtime.saveReports [as handler] (/var/task/app.js:2302:28)",
		"    at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"
	]
}

ps: can't wait for native fetch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants