svelte-supabase icon indicating copy to clipboard operation
svelte-supabase copied to clipboard

ReferenceError: __api is not defined

Open PaulAyling opened this issue 3 years ago • 0 comments

Hi, hoping you can help I am having trouble with this dependency. I have installed in on a clean sveltkit installation and get the following errors

500

__api is not defined

ReferenceError: __api is not defined
    at /src/supabaseClient.js:5:27
    at async instantiateModule (/Users/bob/Documents/dev/javascript/svelte/sveltekitSuperbase/node_modules/vite/dist/node/chunks/dep-971d9e33.js:56177:9)

my repo is here https://github.com/PaulAyling/sveltekitSuperbaseTailwind/tree/feature/2-Superbase

Not sure what I need to do - I have tried hardcoding the env parameters and it still doesn't work. I did successfully get super base to work with the svelte template.

PaulAyling avatar Feb 26 '22 16:02 PaulAyling