ES6 Class breaks build as "reserved keyword"
See original GitHub issueclass WebSocket {
[12:01:50] [AngularFilesort] Error in plugin 'gulp-angular-filesort'
Message:
Error in parsing: "components/api/websocket.service.js", Line 6: Unexpected reserved word
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Reserved keywords in ES6 with example usage - Medium
Reserved keywords in ES6 with example usage ; break — terminates a loop or a switch construct ; case — it's a clause...
Read more >List of reserved keywords #2536 - microsoft/TypeScript - GitHub
Is there a list of reserved keywords for Typescript somewhere? ... break. case. catch. class. const. continue. debugger. default.
Read more >Classes - JavaScript - MDN Web Docs
Classes are a template for creating objects. ... A constructor can use the super keyword to call the constructor of the super class....
Read more >node.js / ES6 / class creation : SyntaxError: Unexpected ...
For some reason the ES6 reserved words like class and extends were throwing SyntaxError: Unexpected reserved word, even when using --harmony flag.
Read more >JavaScript Reserved Words - W3Schools
JavaScript Reserved Words ; abstract, arguments, await*, boolean ; break, byte, case, catch ; char, class*, const, continue.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you are using babel, you can just use:
Thanks Javarome,
it works fine so far. Piping directly is easiest option I found.