#ask #angularJS吞掉-NG-注释 [英] #ask #angularJS gulp-ng-annotate

查看:140
本文介绍了#ask #angularJS吞掉-NG-注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在错误的一饮而尽angularJS,显示错误插件'一饮而尽-NG-注释
app.js:无法处理因分析误差源

I have error at gulp on angularJS, display Error in plugin 'gulp-ng-annotate' app.js: couldn't process source due to parse error

第一,我不知道是什么一饮而尽-NG-注释功能,任何人都知道吗?

first, I don't know what gulp-ng-annotate function,anybody know?

推荐答案

吞掉-NG-注释是一种自动生成任务,它会赶上大部分依赖关系,但有时需要使用/ * * @ngInject /语法提示。

gulp-ng-annotate is an automated build task, it will catch most dependencies, but it sometimes requires hints using the /* @ngInject */ syntax.

要解决错误问题,更新吞掉-NG-注释:〜0.3.6到吞掉-NG-注释:^ 0.5.2
 运行:

To resolve error issue, update "gulp-ng-annotate": "~0.3.6" to "gulp-ng-annotate": "^0.5.2", run:

npm install --save-dev gulp-ng-annotate

sudo npm install --save-dev gulp-ng-annotate

运行故宫更新后

npm update

这篇关于#ask #angularJS吞掉-NG-注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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