benjaminarcher@Benjamins-MacBook-Air techlend-be % npm run build techlend-be@0.0.1 build…
- User
benjaminarcher@Benjamins-MacBook-Air techlend-be % npm run build
techlend-be@0.0.1 build npx @nestjs/cli build
benjaminarcher@Benjamins-MacBook-Air techlend-be % npm run lg:dev
techlend-be@0.0.1 lg:dev npx --no-install langgraphjs dev --port 2024
error: ▪ ZodError: [ { "received": 20, "code": "invalid_literal", "expected": "20", "path": [ "node_version" ], "message": "Invalid literal value, expected "20"" } ] at get error (file:///Users/benjaminarcher/bridgit/techlend-be/node_modules/zod/dist/esm/v3/types.js:39:31) at ZodObject.parse (file:///Users/benjaminarcher/bridgit/techlend-be/node_modules/zod/dist/esm/v3/types.js:114:22) at getConfig (file:///Users/benjaminarcher/bridgit/techlend-be/node_modules/@langchain/langgraph-cli/dist/utils/config.mjs:93:29) at prepareContext (file:///Users/benjaminarcher/bridgit/techlend-be/node_modules/@langchain/langgraph-cli/dist/cli/dev.mjs:71:28) at async launchServer (file:///Users/benjaminarcher/bridgit/techlend-be/node_modules/@langchain/langgraph-cli/dist/cli/dev.mjs:108:46)
Assistant
It looks like you're encountering a type error in your langgraphjs configuration. The error indicates that the
node_versionfield is set as a number (20) when the configuration expects it to be a string ("20").You'll need to find your langgraphjs configuration file (likely
langgraph.config.jsonor similar in your project) and update the node_version value to be in quotes.Change:
"node_version": 20To:
"node_version": "20"This should resolve the type validation error you're seeing.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.