ERR_INVALID_URL on Node.js 18

Running WebAssembly models in Node 18 yields an error along the lines of:

TypeError: Failed to parse URL from /Users/janjongboom/Downloads/jan-vs-niet-jan-wasm-v69/node/edge-impulse-standalone.wasm
    at Object.fetch (node:internal/deps/undici/undici:11118:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  [cause]: TypeError [ERR_INVALID_URL]: Invalid URL

We’ll be rolling out a fix tomorrow. In the meantime you can patch edge-impulse-standalone.js by replacing the isFileURI function w/:

function isFileURI(filename) {
  return !filename.startsWith('http://') && !filename.startsWith('https://');
}

Or by switching back to Node 16.