噶抛出错误:无法加载" NG-html2js&QUOT ;,它未注册 [英] Karma throws error: Can not load "ng-html2js", it is not registered
本文介绍了噶抛出错误:无法加载" NG-html2js&QUOT ;,它未注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行人缘启动
我得到一个错误
I'm getting an error when I run karma start
:
$ karma start
INFO [karma]: Karma v0.10.2 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
WARN [preprocess]: Can not load "ng-html2js", it is not registered!
Perhaps you are missing some plugin?
...
但在我的包文件我有报应-NG-html2js- preprocessor:*,
和code这个文件夹preprocessor在 node_modules
存在。
But in my package file I have "karma-ng-html2js-preprocessor": "*",
and the folder with code for this preprocessor exists in node_modules
.
如何解决这个问题的任何想法?
Any ideas on how to solve the problem?
推荐答案
在我的情况下,问题是连接到缺乏卡玛NG-html2js- preprocessor
因缘配置在插件
部分。在教程我看到你不需要添加'NG-html2js
里面的插件,但对我来说不无它的工作。
In my cases, the problem was connected to lack of karma-ng-html2js-preprocessor
inside karma config plugins
sections. In tutorials I saw that you don't need to add 'ng-html2js'
inside plugins, but for me it doesn't work without it.
这篇关于噶抛出错误:无法加载" NG-html2js&QUOT ;,它未注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文