GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove private namespace `JSX` by quisido · Pull Request #12691 · getsentry/sentry-javascript

Conversation

@quisido

@quisido quisido commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

Using React 19 release candidate, I find that the JSX namespace is now private and cannot be used by dependencies. Doing so produces build errors:

.../Yarn/Berry/cache/@sentry-react-npm-8.13.0-bd23d3c2da-10c0.zip/node_modules/@sentry/react/build/types/reactrouter.d.ts:19:17 - error TS2503: Cannot find namespace 'JSX'.

19     component?: JSX.Element;
                   ~~~

.../Yarn/Berry/cache/@sentry-react-npm-8.13.0-bd23d3c2da-10c0.zip/node_modules/@sentry/react/build/types/types.d.ts:51:51 - error TS2503: Cannot find namespace 'JSX'.

51 export type CreateRoutesFromChildren = (children: JSX.Element[]) => RouteObjectArrayAlias;
                                                     ~~~

Found 2 errors in 2 files.

This PR addresses this issue by replacing JSX.Element with the public type ReactElement.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
quisido added 3 commits June 28, 2024 00:32
@quisido
remove private namespace JSX
ec00206
@quisido
remove private namespace JSX
c7b6fb3
@quisido
Merge pull request #1 from quisido/patch-2
a6cac54
remove private namespace `JSX`
@andreiborza
andreiborza self-requested a review July 2, 2024 12:32
@andreiborza andreiborza self-assigned this Jul 2, 2024
andreiborza
andreiborza approved these changes Jul 2, 2024
View reviewed changes

@andreiborza andreiborza left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thank you for the contribution!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@andreiborza
andreiborza merged commit 58af1d7 into getsentry:develop Jul 2, 2024
@quisido
quisido deleted the patch-1 branch July 4, 2024 17:05
@TheSlimvReal TheSlimvReal mentioned this pull request Jul 25, 2024
[Snyk] Upgrade @sentry/browser from 8.13.0 to 8.14.0 Aam-Digital/ndb-core#2477
Merged
This was referenced Jul 26, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.14.0 https-quantumblockchainai-atlassian-net/ossinsight#781
Open
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.15.0 https-quantumblockchainai-atlassian-net/ossinsight#783
Open
@amykapernick amykapernick mentioned this pull request Jul 27, 2024
[Snyk] Upgrade @sentry/nextjs from 8.14.0 to 8.15.0 amykapernick/wedding#11
Open
@aam-digital-ci aam-digital-ci mentioned this pull request Jul 27, 2024
[Snyk] Upgrade @sentry/browser from 8.13.0 to 8.15.0 Aam-Digital/ndb-core#2482
Closed
This was referenced Jul 30, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.16.0 https-quantumblockchainai-atlassian-net/ossinsight#787
Open
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.17.0 https-quantumblockchainai-atlassian-net/ossinsight#791
Open
@amykapernick amykapernick mentioned this pull request Aug 1, 2024
[Snyk] Upgrade @sentry/nextjs from 8.14.0 to 8.17.0 amykapernick/wedding#12
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@andreiborza andreiborza andreiborza approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@andreiborza andreiborza

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@quisido @andreiborza
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.