Build a React App

I am following this tutorial and it is not successfully executing. My stardog is running fine and also react project is executing. On step 3 : loading some data , the following exception has raised:
(node:5360) 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 ()
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)

I am using Stardog server 4.2.4 and latest version of node v18.12.1

stardog.js isn't compatible with node 18. We're working on this, but in the meantime you can use node 14 or 16.