Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token: name «Scope», expected: punc «;» when using Uglify #1984

Closed
4 of 8 tasks
EwaldBorger opened this issue Apr 2, 2019 · 2 comments
Closed
4 of 8 tasks

Comments

@EwaldBorger
Copy link

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

5.0.1-5.0.3

Description

Since 5.0.1 our build fails on sentry/browser with

ERROR in static/js/app.60b70a642d5ee8ba4c1c.js from UglifyJs
Unexpected token: name «Scope», expected: punc «;» [./node_modules/@sentry/hub/esm/scope.js:9,7][static/js/app.60b70a642d5ee8ba4c1c.js:32760,6]

I'm not sure how or why and am sorry don't have more information, but 5.0.0 doesn't have that problem (which is unfortunate as 5.0.3 fixes the Dedupe integration issue).

@HazAT
Copy link
Member

HazAT commented Apr 2, 2019

The esm build we provide needs to be transpiled to es5 probably, the code is es6.
What kind of setup do you have besides UglifyJs?

@ddehghan
Copy link

ddehghan commented Apr 2, 2019

we have the same issue with @sentry/browser ver 5.0.3. but ver 5.0.0 works.

we are using "tsconfig-paths-webpack-plugin": "3.2.0" to uglify the js files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants