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

Fixed label extraction from the stack traces in FireFox and Safari #1714

Merged
merged 1 commit into from
Jan 15, 2020

Conversation

Andarist
Copy link
Member

@Andarist Andarist commented Jan 11, 2020

@changeset-bot
Copy link

changeset-bot bot commented Jan 11, 2020

🦋 Changeset is good to go

Latest commit: 948b34c

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -158,7 +158,7 @@ export const jsx: typeof React.createElement = function(
)
if (!match) {
// safari and firefox
match = error.stack.match(/^.*\n([A-Z][A-Za-z$]+)@/)
match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/)
Copy link
Member Author

Choose a reason for hiding this comment

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

Example stack trace which was failing:

jsx@http://localhost:3000/_next/static/development/pages/theme_ui.js?ts=1578745166666:440:17
jsx$$1@http://localhost:3000/_next/static/development/pages/theme_ui.js?ts=1578745166666:2777:60
TestThemeUI@http://localhost:3000/_next/static/development/pages/theme_ui.js?ts=1578745166666:23:62
renderWithHooks@http://localhost:3000/_next/static/development/dll/dll_d6a88dbe3071bd165157.js?ts=1578745166666:16511:27
mountIndeterminateComponent@http://localhost:3000/_next/static/development/dll/dll_d6a88dbe3071bd165157.js?ts=1578745166666:19045:13

The Chrome one is not matching with ^ at the beginning, so this should be OK here too.

@codecov
Copy link

codecov bot commented Jan 11, 2020

Codecov Report

Merging #1714 into master will not change coverage.
The diff coverage is 100%.

Impacted Files Coverage Δ
packages/core/src/jsx.js 100% <100%> (ø) ⬆️

@Andarist Andarist merged commit d0b2a94 into master Jan 15, 2020
@Andarist Andarist deleted the fix/stack-trace-matching branch January 15, 2020 11:34
@github-actions github-actions bot mentioned this pull request Jan 15, 2020
@jeffscottward
Copy link

This is still an issue in Prod. Is this getting release soon?

@Andarist
Copy link
Member Author

This has been released few months ago - if u are still experiencing problems with that please create a new issue with a runnable repro case attached to it.

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

Successfully merging this pull request may close these issues.

Next.js Prop className did not match.
3 participants