Giter Site home page Giter Site logo

Comments (7)

ChristianGilmer avatar ChristianGilmer commented on May 27, 2024 6

try downgrading to react and react-dom 16.12.0

from react.net.

dineshpannu avatar dineshpannu commented on May 27, 2024 1

I added https://github.com/anonyco/FastestSmallestTextEncoderDecoder as a polyfill in my server webpack configuration and that seemed to have fixed it.

from react.net.

LinusCenterstrom avatar LinusCenterstrom commented on May 27, 2024

change the import of ReactDOMServer to be from either
"react-dom/cjs/react-dom-server-legacy.browser.development" or
"react-dom/cjs/react-dom-server-legacy.browser.production.min.js"
instead of reactdom/server

from react.net.

m1is avatar m1is commented on May 27, 2024

change the import of ReactDOMServer to be from either "react-dom/cjs/react-dom-server-legacy.browser.development" or "react-dom/cjs/react-dom-server-legacy.browser.production.min.js" instead of reactdom/server

I already abandoned this, just too many issues trying to get it to work with Material UI.

from react.net.

sebastian-pierre avatar sebastian-pierre commented on May 27, 2024

Above solution with linking to the legacy files does not work for me. It keeps throwing the same error, and / or TextEncoder is not a constructor.

from react.net.

dustinsoftware avatar dustinsoftware commented on May 27, 2024

from react.net.

LorenDorez avatar LorenDorez commented on May 27, 2024

This is due to change React v18 added. The only work around at this time would be to add a polyfill to your build scripts. I started a discussion about plans i have to bring this project up to better support React v18 but its going to require some major changes. #1343

from react.net.

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.