grunt build
命令失败,结果如下
请帮帮我....
注意:
ngAnnotate:dist reading
发生了,但在那之后 writing
没有发生......
凉亭缩小工作。 Controller 、服务 js 文件无法ngAnnotate
controller 没有任何 ES6 特性(没有箭头函数 ==>,没有用于声明的 Let,const 关键字)
我的 package.json 文件包含以下模块
最佳答案
我在使用 "grunt-ng-annotate": "1.0.1"
时遇到了同样的错误。我尝试升级但没有成功。
由于我需要快速修复,我不得不降级到 0.10.0
,现在它工作正常。
- 我删除了当前版本:
npm uninstall grunt-ng-annotate --save-dev
- 并安装旧的:
npm install grunt-ng-annotate@0.10.0 --save-dev
希望对您有所帮助!
关于gruntjs - 警告 : StringMap expected string key Use --force to continue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53850838/