I want to verify my installation, so I tried to run the example. But when following the instruction in the README file, at npm run build step:
mike@main-pc:~/github/pi-mcp-adapter/examples/interactive-visualizer$ npm run build
> interactive-visualizer-example@0.1.0 build
> node ./scripts/build.mjs
✘ [ERROR] Could not resolve "zod"
../../ui-stream-types.ts:1:18:
1 │ import { z } from "zod";
╵ ~~~~~
You can mark the path "zod" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle.
✘ [ERROR] Could not resolve "zod"
../../ui-stream-types.ts:1:18:
1 │ import { z } from "zod";
╵ ~~~~~
You can mark the path "zod" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle.
/home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:1467
let error = new Error(text);
^
Error: Build failed with 1 error:
../../ui-stream-types.ts:1:18: ERROR: Could not resolve "zod"
at failureErrorWithLog (/home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:1467:15)
at /home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:926:25
at /home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:878:52
at buildResponseToResult (/home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:924:7)
at /home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:951:16
at responseCallbacks.<computed> (/home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:603:9)
at handleIncomingPacket (/home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:658:12)
at Socket.readFromStdout (/home/mike/github/pi-mcp-adapter/examples/interactive-visualizer/node_modules/esbuild/lib/main.js:581:7)
at Socket.emit (node:events:509:28)
at addChunk (node:internal/streams/readable:563:12) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
Node.js v24.15.0
I want to verify my installation, so I tried to run the example. But when following the instruction in the README file, at
npm run buildstep: