Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Documentation: Incorrect imports and export in examples/external_client.js #472

Open
GODCREATOR333 opened this issue Feb 8, 2025 · 0 comments

Comments

@GODCREATOR333
Copy link

Issue Description

The example code in examples/external_client.js contains incorrect import paths that need to be updated to match the current package structure.

Current (Incorrect) Code:-

import { Stagehand } from "@/dist";
import { z } from "zod";
import { OllamaClient } from "./external_clients/ollama";
import StagehandConfig from "@/stagehand.config";

Corrected Code:-

import { Stagehand } from "@browserbasehq/stagehand";
import { z } from "zod";
import { OllamaClient } from "./ollama_client.js";
import StagehandConfig from "./stagehand.config.js";

The function example() is not being exported correctly to be used in main.ts or index.ts.
Someone with the right permissions may assign me this task as i would like to make a PR.

GODCREATOR333 added a commit to GODCREATOR333/stagehand that referenced this issue Feb 8, 2025
…t.ts to correct import errors and export the example() function correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant