Git Product home page Git Product logo

Comments (4)

weirdwater avatar weirdwater commented on August 27, 2024 1

Hi @GielAmsterdam, sorry to hear you ran into this bug.

To resolve this issue in your widget, please add "@types/react": "^18.2.0" to your overrides (npm) or resolutions (yarn). You may need to delete your package-lock.json and node_modules for the changes to take effect, as overrides/resolutions are applied during install.

The reason why this bug occurs is that with a recent release of the pluggable widgets tools (10.7.2) we upgraded the dependency on the mendix package. This includes a different version of @types/react, which causes Typescript to use different definitions, leading to the confusing error ReactElement is not assignable to ReactElement.

To avoid this issue in new widgets, we released a new version of the widget generator (10.7.3) that sets the overrides/resolutions for you.

from docs.

GielAmsterdam avatar GielAmsterdam commented on August 27, 2024

Dear @ConnorLand, I have posted this problem on the Mendix Forum a and got a good answer from someone from the community a couple of weeks ago. Maybe his answer is helpfull to you. https://community.mendix.com/link/space/widgets/questions/136642

from docs.

ConnorLand avatar ConnorLand commented on August 27, 2024

@weirdwater can you confirm if our recent pluggable widget doc upgrades addressed these issues?

from docs.

GielAmsterdam avatar GielAmsterdam commented on August 27, 2024

Thanks @weirdwater

from docs.

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.