I have a sveltekit app working with Supabase on Ve...
# help
a
I have a sveltekit app working with Supabase on Vercel. There seems to be an issue with Supabase js and Node 16:
Copy code
[POST] /api/auth/signin
14:25:55:71
2022-05-17T04:25:56.345Z    9224560d-5da7-4630-8ecf-2c93d7755e57    ERROR    Error: Dynamic require of "stream" is not supported
    at file:///var/task/index.js:12:9
    at node_modules/node-fetch/lib/index.js (file:///var/task/index.js:7860:35)
    at __require2 (file:///var/task/index.js:18:50)
    at node_modules/cross-fetch/dist/node-ponyfill.js (file:///var/task/index.js:8927:21)
    at __require2 (file:///var/task/index.js:18:50)
    at node_modules/@supabase/gotrue-js/dist/main/lib/helpers.js (file:///var/task/index.js:8981:41)
    at __require2 (file:///var/task/index.js:18:50)
    at node_modules/@supabase/gotrue-js/dist/main/GoTrueApi.js (file:///var/task/index.js:9090:21)
    at __require2 (file:///var/task/index.js:18:50)
    at node_modules/@supabase/gotrue-js/dist/main/index.js (file:///var/task/index.js:10191:39)
2022-05-17T04:25:56.349Z
Does anyone have any ideas?
n
Hello @AlanK! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! 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.
o
Hi Are you using Supabase on server side or client side? @AlanK
n
AlanK (2022-05-17)
a
Server side endpoint
o
Do you have the same error with Node14 or 15?
a
Thank you for responding @Olyno - Node 16 does seem to be a key here but it is now required for Sveltekit (it seems). I have also been advised of this:
From other threads it sounds like adapter-vercel/adapter-auto v51 has a bug. Reverting to v50 should temporarily fix it [3:43 AM] A fix is being worked on https://github.com/sveltejs/kit/pull/4967
o
So the problem came from the vercel adapter right?
Like you got it fix with this revert, or not yet?
a
Yes the vercel adapter - I haven't reverted yet but I think we can call it solved in this channel 🙂