I came upon this error when trying to use ky in a Next.js project:
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /foo/node_modules/ky/index.js<