When import from backend, the other functions stops working

I have a perfectly workable collapse function on a strip on my site, however, when i import something from the backend, every other function on that page stops working? can someone pleade tell me why?

I deleted everythin else I need the backend file for, as I narrowd it all down to whenever that import is there, it all stops working.

(#button1 is the yellow button behind the “change strip background”)


here is the backend function I’m importing:

Hi Amanda. In the backend file, change the declaration of sendEmail to:

export async function sendEmail(subject, body, recipient)

The function has to be declared as async because you are using await on the call to getSecret(). This error is causing the other functions on the page to stop working.

Thank you so much !