ember错误:编译错误:不是助手 [英] ember Error: Compile Error: is not a helper

查看:45
本文介绍了ember错误:编译错误:不是助手的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 Ember.js 开发前端时,出现以下错误:

I got the following error while developing our front-end with Ember.js:

琥珀色错误:编译错误:'...'不是帮助程序

ember Error: Compile Error: '...' is not a helper

此错误是什么意思?

推荐答案

原因

Ember会引发此错误.

Ember throws this error if there is no component or helper with the given name is not found in your project or your dependent addons.

如何解决

您应该检查所编写的组件或帮助程序的名称(可能是拼写错误或书写组件的目录结构不正确).

You should check the name of the component or helper that you have written (possible errors are spelling errors or writing directory structure of the component incorrectly).

旋转显示了当组件my-component称为时此错误消息的示例.{{my-component2 x = x}} 而不是 {{my-component x = x}} .

This twiddle shows example of this error message when the component my-component is called as {{my-component2 x=x}} instead of {{my-component x=x}} mistakenly.

这篇关于ember错误:编译错误:不是助手的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆