# Application crash due to invalid imports

**URL:** https://meta.discourse.org/t/application-crash-due-to-invalid-imports/213308
**Category:** Support
**Created:** [December 28, 2021, 5:56pm UTC](https://meta.discourse.org/t/application-crash-due-to-invalid-imports/213308 "2021-12-28T17:56:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kumar\_Karuppaiah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumar_karuppaiah/32/243669_2.png) [@Kumar\_Karuppaiah](https://meta.discourse.org/u/Kumar_Karuppaiah)
#### Post date: [December 28, 2021, 5:56pm UTC](https://meta.discourse.org/t/application-crash-due-to-invalid-imports/213308/1 "2021-12-28T17:56:14Z")

</div>

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’  
});

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/e/3eb4b344e414f67133252399be2228f722a5acdc.png)

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

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 28, 2021, 6:20pm UTC](https://meta.discourse.org/t/application-crash-due-to-invalid-imports/213308/2 "2021-12-28T18:20:35Z")

</div>

Depending where you added the code, can you disable the theme or plugin using [safe mode](https://meta.discourse.org/t/53504?silent=true)?

`[YourSite]/safe-mode`

---

<div class="post-metadata">

### Author: ![Kumar\_Karuppaiah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumar_karuppaiah/32/243669_2.png) [@Kumar\_Karuppaiah](https://meta.discourse.org/u/Kumar_Karuppaiah)
#### Post date: [December 29, 2021, 10:01am UTC](https://meta.discourse.org/t/application-crash-due-to-invalid-imports/213308/3 "2021-12-29T10:01:08Z")

</div>

Thanks, It is working now.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [January 28, 2022, 10:01am UTC](https://meta.discourse.org/t/application-crash-due-to-invalid-imports/213308/4 "2022-01-28T10:01:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
