unexpected token during minification
See original GitHub issue- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
Package + Version
-
@sentry/browser
-
@sentry/node
-
raven-js
-
raven-node
(raven for node) - other:
Version:
4.0.0
Description
When minifying with the Terser plugin with Webpack (I had the same issue with Uglify when it was still supporting es6), the build fails with that error
Unexpected token: punc ()) [./node_modules/@sentry/browser/dist/index.js:2535,0]
This happens since the first release candidate. It’s working fine with the version 4.0.0-beta.12
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Unexpected token: operator (>) when trying to minify the ...
Apparently, your minifier doesn't understand arrow functions, or it needs some option to be set to know you're doing ES2015+ ("ES6+") stuff.
Read more >Minification causes unexpected token '{' when targetting es5
When I'm bundling a main.js file with imports like this: import $ from ... Minification causes unexpected token '{' when targetting es5 #335....
Read more >Minify causes “Uncaught SyntaxError”
Hi there,. Just updated my client's site with WP-Optimize 3.2.7 and cannot seem to reliably enable Minify anymore without it breaking JavaScript on...
Read more >[SOLVED] packages/minifyStdJS/plugin/minify-js.js:49:25: ...
I am attempting to upgrade to meteor@2.4-rc.0 from meteor@2.2.3. Development with meteor run works fine. I am getting the following stack ...
Read more >Syntax Error on js minification file
Uncaught SyntaxError: Invalid or unexpected token. in the minified main.js file. The error appears to be on the very last line of the ......
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
just tried it, it’s working great, thanks @kamilogorek 😉
just faced this issue