Skip to content

Add source maps upload instructions for CRA #7628

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

Merged
merged 8 commits into from
Aug 16, 2023

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Aug 14, 2023

Resolves #7106

Adds instructions on how to get source maps working with Create React App.

@vercel
Copy link

vercel bot commented Aug 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 16, 2023 10:10am

Copy link
Contributor

@vivianyentran vivianyentran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some small edits but otherwise LGTM! Thanks for adding these docs!

### 3. Inject Debug IDs Into Build Artifacts

Debug IDs are used to match the stack frame of an event with its corresponding minified source and source map file.
Visit [What are Artifact Bundles](/platforms/javascript/sourcemaps/troubleshooting_js/artifact-bundles/) if you want to learn more about Artifact Bundles and Debug IDs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Visit [What are Artifact Bundles](/platforms/javascript/sourcemaps/troubleshooting_js/artifact-bundles/) if you want to learn more about Artifact Bundles and Debug IDs.
Visit [What are Artifact Bundles](/platforms/javascript/sourcemaps/troubleshooting_js/artifact-bundles/) if you want to learn more about artifact bundles and debug IDs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Artifact Bundles" and "Debug IDs" are terms we invented which is why we capitalize them. If we lowercase them here we need to do this over the entire docs.

2. Injected Debug IDs into the artifacts you've just generated
3. Uploaded those artifacts to Sentry with our upload command

The last step is deploying a new version of your application using the generated artifacts you created in step one.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The last step is deploying a new version of your application using the generated artifacts you created in step one.
The last step is deploying a new version of your application using the generated artifacts you created.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is critical

Co-authored-by: vivianyentran <20403606+vivianyentran@users.noreply.github.com>
should we add this here generically or create something specific for react? i'm just thinking it might be good to get people looking at next or browser and missing
@smeubank
Copy link
Member

lgtm! just added it to the overview page under guides

image

Co-authored-by: vivianyentran <20403606+vivianyentran@users.noreply.github.com>
@lforst
Copy link
Contributor Author

lforst commented Aug 16, 2023

Thanks @vivianyentran for the review!

@lforst lforst merged commit 00ec2be into master Aug 16, 2023
@lforst lforst deleted the lforst-create-react-app-sourcemap-upload-docs branch August 16, 2023 10:19
adinauer pushed a commit that referenced this pull request Aug 18, 2023
Co-authored-by: vivianyentran <20403606+vivianyentran@users.noreply.github.com>
Co-authored-by: Steven Eubank <47563310+smeubank@users.noreply.github.com>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create-react-app not supported for source maps upload OOTB
3 participants