1

我遇到了之前运行良好的 Grunt 任务的问题。我不确定为什么现在会发生这种情况。这是错误:

Running "ngAnnotate:dist" (ngAnnotate) task
Generating ".tmp/concat/scripts/scripts.js" from: ".tmp/concat/scripts/scripts.js"...ERROR
>> error: couldn't process source due to parse error
>> Assigning to rvalue (8818:4)
Warning: Task "ngAnnotate:dist" failed. Use --force to continue.
Error: Task "ngAnnotate:dist" failed.
at Task.<anonymous> (/home/hakan/webCondecca/node_modules/grunt/lib/util/task.js:205:15)
at Task.runTaskFn (/home/hakan/webCondecca/node_modules/grunt/lib/util/task.js:254:9)
at Task.<anonymous> (/home/hakan/webCondecca/node_modules/grunt/lib/util/task.js:300:12)
at /home/hakan/webCondecca/node_modules/grunt/lib/util/task.js:227:11
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Aborted due to warnings.

我对 Grunt 不太熟悉,这是我实际使用它的第一个项目。我很想得到一些帮助。谢谢!

4

1 回答 1

-1

你的 html 文件中可能有 javascript 代码,我喜欢这样的人看到图片erro ng-annotate grunt

于 2018-06-01T00:14:51.350 回答