Unexpected token: name (CSharpEnumerator)
See original GitHub issueI Use angular-cli to create an angular project, and import linq-es2015. When I typed:
ng build --prod --aot
there was an error:
8ef7c4cbb4dc50.chunk.js from UglifyJs Unexpected token: name (CSharpEnumerator) [0.4cff4e8ef7c4cbb4dc50.chunk.js:872,6]
Here is a DEMO that can reappearance the problem.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
SyntaxError: Unexpected token: name (xxxxxx) from Uglify ...
Using webpack.optimize.UglifyJsPlugin() in webpack.config throws SyntaxError: Unexpected token: name (xxxxxx) . The code there is unreachable.
Read more >UglifyJS webpack plugin throws: Unexpected token: name ...
You can try installing babel-preset-env and adding presets": [ "env" ] to your webpack.config.js or babelrc . Uglify cannot parse ES6 on its ......
Read more >How I Fixed: UglifyJs Unexpected token: name (DropIn)
I've been trying – in vain – to build the front end for CodeReviewVideos. The issue I have been hitting upon is as...
Read more >ERROR in file.js from UglifyJs SyntaxError: Unexpected token
ERROR in file.js from UglifyJs SyntaxError: Unexpected token: name (DateRange) [file.js:line,column]. I went into my webpack config and ...
Read more >Magento 2.4.2: SyntaxError: Unexpected token: name (url)
It appears you have some Javascript that is using ES6 or newer syntax and the version of UglifyJS does not support this.
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
we’re using linq-es5 now.
I do not know.