首页 > 解决方案 > Warning: StringMap expected string key Use --force to continue

问题描述

grunt build command failed with following results

Please help me....
NOTE: ngAnnotate:dist reading happened but after that writing is not happening...
bower minification is working. controllers,services js files unable to ngAnnotate

None of controller have any ES6 features (no arrow funtion ==>, no Let,const keywords used to declare)

my package.json file has below modules

enter image description here

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

标签: gruntjs

解决方案


我正在使用"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

我希望它有帮助!


推荐阅读