Coder Social home page Coder Social logo

Comments (3)

eps1lon avatar eps1lon commented on January 23, 2025

You probably have different versions of React installed. Or a 3rd party library is bundling the JSX runtime of a different React version.

The repro is too big for us to check out. Can you trim it down to something minimal?

from react.

SukkaW avatar SukkaW commented on January 23, 2025

You probably have different versions of React installed

I don't know. Since it is using Next.js Pages Router, Next.js would most likely not use its bundled version of React.

Or a 3rd party library is bundling the JSX runtime of a different React version.

No, we do not use any CSS-in-JS that requires non-React jsx runtime. It uses style9, a similar AoT CSS-in-JS approach to Facebook's stylex.

The repro is too big for us to check out. Can you trim it down to something minimal?

Lemme give it a shot!

from react.

SukkaW avatar SukkaW commented on January 23, 2025

Update

I know what happened and it is not an issue of React.

So the serialization assumes the $$typeof would most likely be Symbol.for('react.element'), which is true in 2018 (when Dan implements that serialization process for the https://react.dev).

Years later, the coming React 19 is introducing new shapes of react element (#28813), and therefore objects with Symbol.for('react.transitional.element') are produced. The serialization process doesn't handle Symbol.for('react.transitional.element'), hence the crash.

Also, because the original $$typeof information is lost during the serialization process, the error A React Element from an older version of React was rendered was never reported.

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.