✘ [ERROR] Could not resolve "zod"
node_modules/@openrouter/ai-sdk-provider/dist/index.mjs:49:24:
49 │ import { z as z2 } 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.
Looks like zod is listed as a peer dependency in the package.json . Installing zod externally solved my problem, but maybe zod should be moved to main dependencies in package.json?
Looks like
zod
is listed as a peer dependency in thepackage.json
. Installingzod
externally solved my problem, but maybezod
should be moved to main dependencies inpackage.json
?