Hey anybody here get this functions example workin...
# help
c
Hey anybody here get this functions example working: https://github.com/supabase-community/flutter-stripe-payments-with-supabase-functions ? When I try to serve the payment-sheet function locally I get a couple check errors like
error: TS2339 [ERROR]: Property 'ref' does not exist on type 'Listener'.
and it wont start up
n
Hello @chops! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
🆕 flutter-stripe-payments Supabase example functions error when including Stripe JS library
c
Specifically what I see is:
Copy code
Starting supabase/functions/payment-sheet
Serving supabase/functions/payment-sheet
Watcher Process started.
Check file:///home/deno/functions/payment-sheet/index.ts
error: TS2339 [ERROR]: Property 'ref' does not exist on type 'Listener'.
    this.#listener?.ref();
                    ~~~
    at https://deno.land/std@0.135.0/node/internal_binding/tcp_wrap.ts:240:21

TS2339 [ERROR]: Property 'unref' does not exist on type 'Listener'.
    this.#listener?.unref();
                    ~~~~~
    at https://deno.land/std@0.135.0/node/internal_binding/tcp_wrap.ts:243:21

Found 2 errors.
Watcher Process finished. Restarting on file change...
g
search for "unref" up top, it has been mentioned, but don't see a solution offered
n
flutter-stripe-payments Supabase example functions error when including Stripe JS library
c
Ah I see, so it has been run in to before
So the latest supabase/deno-relay Docker image is 1.2.0 (the supabase cli is using 1.1.0). This latest image is still only using deno 1.20.3 instead of the minimum 1.20.5. Might rebuild the image locally and make a PR for the version bump. Don't know if that'll do anything for deployed functions though
g
Yeah, I did not find much on how to deal with versions.
v
omg I had the exact same problem. I'm very thankful the issue is not on my end.
c
It's pretty hard to figure out where a bug should even get filed for this. Not sure what version they're running in their production either. The supabase cli uses supabase/deno-relay, which maps to this git repo https://github.com/supabase/functions-relay. Unfortunately, that Dockerfile inherits from supabase/deno which does not appear to have a git repo. It could potentially inherit from denoland/deno, but without a Dockerfile available I can't tell what they do differently in their container
g
@chops, I thought about not knowing where to post function issues a few weeks ago when I was finding early function issues, it might be the relay, but it is not function.js. I'd just file it in supabase/supabase issues right now.