question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected token: name (CSharpEnumerator)

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
QJesuscommented, Jun 9, 2017

we’re using linq-es5 now.

0reactions
ENikScommented, Jun 9, 2017

I do not know.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found