My error message is this:
supabaseUrl is required.
at new SupabaseClient (https://a329943f-83d7-4621-bee5-35a89cb79cc8.id.repl.co/static/js/bundle.js:12145:29)
at createClient (https://a329943f-83d7-4621-bee5-
I get the same error in two repl’s one html and one typescript. based.
my supabaseClient.js file consists of this:
import { createClient } from '@supabase/supabase-js'
const supabaseUrl = process.env.REACT_APP_SUPABASE_URL
const supabaseKey = process.env.REACT_APP_ANON_KEY
const supabase = createClient(supabaseUrl, supabaseKey)
export default supabase
It does not matter if I add the env variables into a file name .env or in the Secrets tool. I have also tried using the variable names REPLIT_DB_SECRET and REPLIT_DB_URL.
The typescript repl also complains about this:
✘ [ERROR] The JSX syntax extension is not currently enabled
src/pages/Home.js:6:4:
6 │ <div className="page home">
╵ ^
The esbuild loader for this file is currently set to "js" but it must be set to "jsx" to be able
to parse JSX syntax. You can use "--loader:.js=jsx" to do that.
which I tried fixing with Ghostwriters suggestions but that does not work either and now I don’t know what to do. The code I am trying to run is from GitHub - iamshaunjp/Supabase-Tutorial-for-Beginners: All the course files for the Supabase Tutorial playlist on the Net Ninja YouTube Channel & on Net Ninja Pro
Thanks!