shaka-project / generic-webdriver-server

A generic WebDriver server framework for use with Karma and Selenium, with backends for ChromeOS, Chromecast, Tizen, and Xbox One.
Apache License 2.0
27 stars 18 forks source link

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

Closed joeyparrish closed 6 months ago

joeyparrish commented 6 months ago

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.