-
Notifications
You must be signed in to change notification settings - Fork 104
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
core_AbstractPage_client is not defined in production #442
Comments
Hmm, we don't explicitly support electron. What version of Node is it running under the hood? Or does it use another engine? |
@imyosh I've created an example repository where the anthropic ai sdk is used in an electron app https://github.com/linus-amg/electron-anthropic-sdk I'm currently on MacOS so I did not try in an environment which uses windows (as you seem to do), but I hope it works for you too. Don't hesitate to ping me if you have any additional questions. Parts of the code which might matter when you try to implement this yourself:
hope this helps, good luck! |
@linus-amg thanks so much for the reproduction repo! I just tested it locally against the new alpha and it worked! Please re-open if you're still running into this. |
Hello, I have been using the package with electron 26.2.1 in the main process (node.js)
it works nicely in the dev mood, but in production it produce the attached error about core_AbstractPage_client being undefined
it's can be produced by just setting up a function with:
appreciate your help!
The text was updated successfully, but these errors were encountered: