-
Notifications
You must be signed in to change notification settings - Fork 952
Open
Description
Tried to run the command from https://docs.stagehand.dev/integrations/guides#custom-llm-clients
npx create-browser-app@latest --example custom-client-ollama
✔ Enter a name for your project testollama
file:///Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/create-browser-app/dist/cli.js:389
when: (answers2) => answers2.modelName.includes("gemini") && !process.env.GOOGLE_API_KEY && !process.env.GOOGLE_GENERATIVE_AI_API_KEY && !savedEnv.googleApiKey
^
TypeError: Cannot read properties of undefined (reading 'includes')
at Proxy.when (file:///Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/create-browser-app/dist/cli.js:389:46)
at /Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/run-async/index.js:98:25
at new Promise (<anonymous>)
at /Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/run-async/index.js:33:19
at PromptsRunner.shouldRun (file:///Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/inquirer/dist/esm/ui/prompt.js:258:51)
at file:///Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/inquirer/dist/esm/ui/prompt.js:120:109
at doInnerSub (/Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:22:31)
at outerNext (/Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:17:70)
at OperatorSubscriber._this._next (/Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
Node.js v24.1.0
also tried on Node LTS
npx create-browser-app --example custom-client-ollama
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
✔ Enter a name for your project test-node-lts
file:///Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/create-browser-app/dist/cli.js:389
when: (answers2) => answers2.modelName.includes("gemini") && !process.env.GOOGLE_API_KEY && !process.env.GOOGLE_GENERATIVE_AI_API_KEY && !savedEnv.googleApiKey
^
TypeError: Cannot read properties of undefined (reading 'includes')
at Proxy.when (file:///Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/create-browser-app/dist/cli.js:389:46)
at /Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/run-async/index.js:98:25
at new Promise (<anonymous>)
at /Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/run-async/index.js:33:19
at PromptsRunner.shouldRun (file:///Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/inquirer/dist/esm/ui/prompt.js:258:51)
at file:///Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/inquirer/dist/esm/ui/prompt.js:120:109
at doInnerSub (/Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:22:31)
at outerNext (/Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:17:70)
at OperatorSubscriber._this._next (/Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/Users/edenchan/.npm/_npx/733603f3cc749cb8/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
Node.js v22.18.0
Metadata
Metadata
Assignees
Labels
No labels