警告:StringMap预期的字符串键使用--force继续

时间:2018-12-19 12:03:30

标签: gruntjs

grunt build命令失败,并显示以下结果

请帮助我。...
注意: ngAnnotate:dist reading发生了,但是之后writing没有发生...
凉亭缩小工作。控制器,服务js文件无法 ngAnnotate

没有任何控制器具有任何ES6功能(没有箭头功能==>,没有用于声明的Let,const关键字)

我的package.json文件具有以下模块

enter image description here

enter image description here StringMap expected string key Use --force to continue.

1 个答案:

答案 0 :(得分:0)

我正在使用"grunt-ng-annotate": "1.0.1"并遇到相同的错误。我尝试升级,但是没有用。

由于我需要快速修复,因此我不得不降级为0.10.0,现在一切正常。

  1. 我删除了当前版本:npm uninstall grunt-ng-annotate --save-dev
  2. 并安装了较旧的版本:npm install grunt-ng-annotate@0.10.0 --save-dev

希望对您有帮助!