应用程序因无效导入而崩溃

您好,

我在代码中添加了一个 Handlebars 助手函数。请看代码。

import registerUnbound from 'discourse/helpers/register-unbound';

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

由于导入无效,我遇到了一个错误,这导致整个应用程序崩溃,管理页面也无法工作。

请建议我如何从我的应用程序中删除此代码/主题,以摆脱此错误。

谢谢
Kumar

1 个赞

您添加代码的位置不同,是否可以使用安全模式禁用主题或插件?

[YourSite]/safe-mode

3 个赞

谢谢,现在可以正常工作了。

1 个赞

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