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

SyntaxError: Unexpected token 'const' #5106

Open
sentry-io bot opened this issue Oct 21, 2021 · 5 comments
Open

SyntaxError: Unexpected token 'const' #5106

sentry-io bot opened this issue Oct 21, 2021 · 5 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 21, 2021

Seems to be happening a few times every day. I don't know if there is any end-user impact.

Sentry Issue: MICROMASTERS-56X

SyntaxError: Unexpected token 'const'
  at None (/static/bundles/public-0002358d3c70c23ad5b4.js:26)
@Wassaf-Shahzad Wassaf-Shahzad self-assigned this Oct 27, 2021
@Wassaf-Shahzad
Copy link
Contributor

@pdpinch @blarghmatey
I had a detailed discussion with @arslanashraf7 regarding this issue and unfortunately we are unable to reproduce this locally as the issue mainly arises from users hitting cloudfront url.I s there any method to reproduce this locally ?

@pdpinch
Copy link
Member

pdpinch commented Oct 28, 2021

It looks like sentry is having an issue parsing the sourcemap for this. Is there anything we should do to make that work better?

image

@Wassaf-Shahzad
Copy link
Contributor

It looks like sentry is having an issue parsing the sourcemap for this. Is there anything we should do to make that work better?

image

I did some R&D for this issue and I believe our source maps are not being uploaded.if you go to Settings > Project Settings > micromasters > Source Maps and click any Archive it will give you There is no artifact in this archive.

ScreenShot
Screenshot 2021-11-04 at 4 09 08 PM

@pdpinch
Copy link
Member

pdpinch commented Nov 9, 2021

I'm not sure what this means. If we had the source map, would it help us find and fix this issue? What do we need to do upload them?

@Wassaf-Shahzad
Copy link
Contributor

I'm not sure what this means. If we had the source map, would it help us find and fix this issue? What do we need to do upload them?

Yes, According to the docs

Sentry supports demangling of transpiled, minified, and bundled JavaScript using source maps, which are JSON files that contain information about how to map your deployed code back to its original source(s)

We can use sentry-webpack-plugin to generate and upload our source maps

@Wassaf-Shahzad Wassaf-Shahzad removed their assignment Dec 23, 2021
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

2 participants