Skip to content

Commit 85b4ccf

Browse files
authored
fix(chromeos): Fix loading of node-fetch library (#87)
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.
1 parent 8620037 commit 85b4ccf

File tree

2 files changed

+53
-114
lines changed

2 files changed

+53
-114
lines changed

backends/chromeos/package-lock.json

Lines changed: 52 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backends/chromeos/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"dependencies": {
3333
"generic-webdriver-server": "^1.1.5",
34-
"node-fetch": "^3.3.2",
34+
"node-fetch": "^2.7.0",
3535
"node-ssh": "^13.2.0",
3636
"yargs": "^17.7.2"
3737
},

0 commit comments

Comments
 (0)