Hello all, sorry as I am new to supabase but I kee...
# help
h
Hello all, sorry as I am new to supabase but I keep getting a 404 response from the server everytime I attempt to bring the website live. Sometimes supabase records interaction but the insert() methods I have put in dont seem to add data to the tables. RLS is not enabled in that table but thats all i know
n
Hello @H𝑢𝑳𝒀 𝑺𝑯𝑢𝑻! 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.
h
Here is the simple code I have set up for the website
s
Look inside your network tab to see which request is returning the 404
n
H𝑢𝑳𝒀 𝑺𝑯𝑢𝑻 (2022-04-15)
h
not exactly sure what it means
wierd that there was content download even though it ended up as 404
if there is alternative way to import supabase into the app i would try it
UPDATE: i have removed client.js and incorporated createClient in the main javascript method, but the error "failed to resolve module specifier" appears everytime
s
The 404 means the file path is incorrect and it cannot be found
Are you using a bundler and a dev server to run your code?
h
dev server
live server extension on visual studio
s
You can't just do an import inside of normal JavaScript, you need to use a bundler like Parcel, webpack or rollup to use import in your code like that.
h
so if i were to add parcel to my web app, then the imports would work?
alright so i put the insert code into a function for async to work, and the whole thing works now! great!
thanks a bunch for your help
n
Thread was archived by @H𝑢𝑳𝒀 𝑺𝑯𝑢𝑻. Anyone can send a message to unarchive it.