Giter Site home page Giter Site logo

Comments (9)

tylandercasper avatar tylandercasper commented on September 20, 2024 1

had the same issue. It looks like it's putting the functions folder in the root instead of the supabase/functions folder.
Moving the folder into the supabase folder gets the functions to work again

running the command edge build supabase_functions --dev -p supabase also seems to work.

adding

supabase:
  projectPath: "supabase"

to the yaml appears to have no effect.

from dart_edge.

tylandercasper avatar tylandercasper commented on September 20, 2024 1

I was able to get it working by adding this to the yaml:

supabase:
  project_path: "supabase"

you could probably be doubly safe by adding:

supabase:
  project_path: "supabase"
  projectPath: "supabase"

from dart_edge.

Ehesp avatar Ehesp commented on September 20, 2024

You should see the generated code in the supabase directory in your project... is it there?

from dart_edge.

pedromassango avatar pedromassango commented on September 20, 2024

It is there

from dart_edge.

venkata-reddy-dev avatar venkata-reddy-dev commented on September 20, 2024

@Ehesp @pedromassango i am also facing same issue.

Screenshot 2023-11-07 at 7 35 07 PM

from dart_edge.

venkata-reddy-dev avatar venkata-reddy-dev commented on September 20, 2024

@tylandercasper @pedromassango @Ehesp

Add supabase configuration in edge.yml file

supabase:
  functions:
    task1: 'lib/task1.dart'
    task2: 'lib/task2.dart'
  project_path: "supabase"

For me it got worked.

from dart_edge.

alaincruz06 avatar alaincruz06 commented on September 20, 2024

Having the same issue, this fix doesn´t work for me (or I´m using it wrong I guess), sad thing I can´t figure out the first steps just reading the docs.
Edited: somewhere, between moving the function into the supabase folder and creating/modifying the edge.yml file, it worked...shouldn´t be a tweak from the users side, but a fix from the devs side, just saying.

from dart_edge.

henry2man avatar henry2man commented on September 20, 2024

running the command edge build supabase_functions --dev -p supabase also seems to work.

Hi there. We're facing the same issues, but currently they are related with supabase build -p option. The function is always transpiled to ./functions/dart_edge instead of ./supabase/functions/dart_edge. Any hints?

from dart_edge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.