Build a React App Tutorial Fails with Error

I have a StarDog server running on my M1 Mac, thanks to help from @matthewv.
I'm trying to learn how to access my StarDog server by following this React App tutorial.

However, it's failing with these errors:

node ~/stardog-react/src/data/load-data.js

Creating StarWarsDB...

(node:7588) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11118:11) {
  cause: TypeError: object2 is not iterable
      at action (node:internal/deps/undici/undici:5969:39)
      at action.next (<anonymous>)
      at Object.pull (node:internal/deps/undici/undici:6017:52)
      at ensureIsPromise (node:internal/webstreams/util:205:19)
      at readableStreamDefaultControllerCallPullIfNeeded (node:internal/webstreams/readablestream:2229:5)
      at node:internal/webstreams/readablestream:2319:7
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}

What am I missing?
Thanks

Here is the output with trace warning enabled.

node --trace-warnings /Users/jeroenlapre/stardog-react/src/data/load-data.js
Creating StarWarsDB...

(node:8058) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
    at emitExperimentalWarning (node:internal/util:227:11)
    at fetch (node:internal/process/pre_execution:215:5)
    at Object.create (/Users/jeroenlapre/stardog-react/node_modules/stardog/lib/db/main.js:61:10)
    at loadData (/Users/jeroenlapre/stardog-react/src/data/load-data.js:18:10)
    at Object.<anonymous> (/Users/jeroenlapre/stardog-react/src/data/load-data.js:24:1)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11118:11) {
  cause: TypeError: object2 is not iterable
      at action (node:internal/deps/undici/undici:5969:39)
      at action.next (<anonymous>)
      at Object.pull (node:internal/deps/undici/undici:6017:52)
      at ensureIsPromise (node:internal/webstreams/util:205:19)
      at readableStreamDefaultControllerCallPullIfNeeded (node:internal/webstreams/readablestream:2229:5)
      at node:internal/webstreams/readablestream:2319:7
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}

Hi Jeroen,

this seems to be an issue caused by the stardog dependency. I think there is fetch related PR open in the stardog.js repository. This could solve your issue once it is merged.

Cheers
Lars