Open
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
seems like there is an issue with a deno
package when running supabase functions serve
I get this following error.
worker "/home/deno/functions/scraper" returned an error: Uncaught SyntaxError: The requested module '/v125/[email protected]/esnext/lib/readable-stream-browser.js' does not provide an export named 'default'
at https://esm.sh/v125/[email protected]/esnext/jszip.mjs:2:291
InvalidWorkerCreation: worker boot error
at async Function.create (ext:sb_user_workers/user_workers.js:80:21)
at async Server.<anonymous> (file:///home/deno/main/index.ts:95:24)
at async Server.#respond (https://deno.land/[email protected]/http/server.ts:220:24)
if I run supabase functions serve <function-name> --env-file supabase/.env
then it will work once but needs to be restarted after every run.
seems to only be when done locally. which makes it incrediby frustrating to have to deploy changes everytime we want to test a function.
To Reproduce
start supabase and run supabase functions serve
Expected behavior
the functions should work
A clear and concise description of what you expected to happen.
the function should execute and hot reload locally as expected. deno seems to be flawed
System information
- OS: Ventura 13.4
- Browser chrome
- Version of supabase-js: 1.68.6
- Version of Node.js: 20.3.0
Additional context
seems like local lambda is still quite buggy.