anyone had this issue on angular supabase sample a...
# help
d
anyone had this issue on angular supabase sample app? error TS2345: Argument of type 'Blob | null' is not assignable to parameter of type 'Blob | MediaSource'. Type 'null' is not assignable to type 'Blob | MediaSource'
n
Hello @devthines! 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.
d
await this.supabase.downloadImage(path)
this.dom.bypassSecurityTrustResourceUrl(URL.createObjectURL(data));
these lines
are the one gives that issue
if anyone could help, would be appreciatable
im exploring supabase with angular
o
Hi if you have this error on the ``await this.supabase.downloadImage(path)`` line, it means your ``path`` variable is probably ``null``, or can be ``null``. If you're sure your ``path`` variable is not null, you can cast it with the real type, which is ``Blob`` or ``MediaSource`` @devthines
d
thanks