Application crash due to invalid imports

Hi,

I have added a handlebar helper function in my code. Please find the code.

import registerUnbound from ‘discourse/helpers/register-unbound’;

registerUnbound(‘color-shade’, function() {
return ‘this is sample helper class’
});

I am getting an error due to invalid imports, and it is crashing the entire application and admin page also not working.

Please suggest me how can I remove this code / theme from my application in order to get rid of this error.

Thanks
Kumar

1 Like

Depending where you added the code, can you disable the theme or plugin using safe mode?

[YourSite]/safe-mode

3 Likes

Thanks, It is working now.

1 Like