Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
82 views
in Technique[技术] by (71.8m points)

javascript - Enable ES6 syntax in an AngularJS project

I've a big Angular project with gulp and other tools configured (I don't know these tools), this project seems not to support ES6 syntax (.map/.filter/destructuring/etc.) even if the Node version I'm currently running on (10.13.0) does.

For example, when I use .map, on gulp serve I got this error:

internal/streams/legacy.js:57
      throw er; // Unhandled stream error in pipe.
      ^
Error: Error in parsing: "antheagestioneservizimanutenzioneveicolilistamanutenzioni
uovamanutenzione
uovaorganizzazionepianificazione.controller.js", Line 337: Unexpected token =>

Any suggestion how to enable this syntax or how can I give you more details about project?

question from:https://stackoverflow.com/questions/65951182/enable-es6-syntax-in-an-angularjs-project

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...