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

import problems with Deno on Supabase edge functions. #2169

Closed
KamaniBhavin opened this issue Aug 5, 2023 · 2 comments
Closed

import problems with Deno on Supabase edge functions. #2169

KamaniBhavin opened this issue Aug 5, 2023 · 2 comments
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@KamaniBhavin
Copy link
Contributor

Title: Error with langchain on Supabase in Deno environment

Issue Description:
I recently ran into an issue while working with langchain on Supabase within the Deno environment. It resulted in an error message:

Uncaught SyntaxError: The requested module '/npm/openai@3.3.0/+esm' does not provide an export named 'Configuration' at https://cdn.jsdelivr.net/npm/langchain@0.0.122/+esm:7:427

Steps to Reproduce:

  1. Use the Deno environment.
  2. Attempt to use langchain on Supabase.
  3. Observe the "Uncaught SyntaxError" with the mentioned module and export error.

Expected Behavior:
There should be no SyntaxError, and the 'Configuration' export should be available from the specified module.

Environment:

  • Deno version: [insert Deno version]
  • langchain version: 0.0.122
  • Supabase version: [insert Supabase version]

Additional Information:
The error seems to be related to the 'openai' module at version 3.3.0, which is utilized within langchain. Any insights into resolving this issue would be greatly appreciated.

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label Aug 5, 2023
@sandeepone
Copy link

Did you try esm? https://esm.sh/langchain@0.0.122

@KamaniBhavin
Copy link
Contributor Author

Did you try esm? https://esm.sh/langchain@0.0.122

yes, I figured it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants