Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(chromeos): Fix loading of node-fetch library #87

Merged
merged 1 commit into from
May 14, 2024

Conversation

joeyparrish
Copy link
Member

node-fetch is an ES module, and you can't require() ESM from a non-ESM script. I'm not sure when this changed, or with what versions of node and this package it used to work, but downgrading to node-fetch v2 gives us the non-ESM version that works.

node-fetch is an ES module, and you can't require() ESM from a non-ESM script.
I'm not sure when this changed, or with what versions of node and this package
it used to work, but downgrading to node-fetch v2 gives us the non-ESM version
that works.
@joeyparrish joeyparrish merged commit 85b4ccf into shaka-project:main May 14, 2024
14 checks passed
@joeyparrish joeyparrish deleted the chromeos branch May 14, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants