Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Does @daml/react support react v18?Forum ↗

Does @daml/react support react v18?

App Development3 posts239 views1 likesLast activity Aug 2022
DA
DarkoOP
Aug 2022

When adding react 18 and @daml/react, I get the error that the two versions don’t mix.

Looking at daml/package.json at dfa648f585f985a25c35a60a2ba2a953e4f49598 · digital-asset/daml · GitHub it seems that only react 17 is supported.
Am I reading this correctly?

If so, can the react version be bumped?

Thanks!

CO
cocreature
Aug 2022

It mainly means that we only tested React 17 so far. I wouldn’t be surprised if React 18 actually works without further changes.

DA
Darko
Aug 2022

Oh that’s good to know. Are there plans on expanding the versions that are tested? Because right now you’d need to use a flag in npm to ignore the version limitation that @daml/react imposes on react.

← Back to Discussions