Skip to content

Unable to deploy supabase functions that utilize the LLMChain from langchainJS  #1014

Description

@DitlevHB

Bug report

  • [X ] I confirm this is a bug with Supabase, not with my own application.
  • [X ] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Using the following example project:
https://github.com/langchain-ai/langchain-template-supabase/issues/7

As stated in the issue, deploying a function using supabase with the LLMChain import does not work.
I am relaying the issue here because I am not sure on what end we have a hiccup: langchainJS, or supabase.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Clone https://github.com/langchain-ai/langchain-template-supabase/
  2. Install dependencies
  3. npx supabase start
  4. npx supabase functions deploy chat

Expected behavior

Edge functions should be deployed without errors

System information

  • OS: Windows
  • Version of supabase-js: 1.49.4
  • Version of Node.js: 18.15.0

Additional context

Running the function with Deno works, but fails when running the same command as supabase CLI uses here:
https://github.com/supabase/cli/blob/main/internal/functions/deploy/deploy.go#L98

Without any clarity it seems the problem might lie in build.ts as I am able to run the script without build.ts directly using deno run?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions