microsoft-authentication-library-for-js icon indicating copy to clipboard operation
microsoft-authentication-library-for-js copied to clipboard

Support for React 19 is critically required as to upgrade from React 18.2

Open ritwickg opened this issue 1 year ago • 8 comments

Core Library

MSAL.js (@azure/msal-browser)

Wrapper Library

MSAL React (@azure/msal-react)

Public or Confidential Client?

Public

Description

MSAL React package is blocking any kind of upgrades from React 18 to 19 version. The migration is critical to remediate different vulnerable libraries and Keeping the Environments updated to actively supported react version

ritwickg avatar Feb 19 '25 06:02 ritwickg

@ritwickg - A quick search on existing issues would bring up this list

https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/7481

https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/7455

https://github.com/AzureAD/microsoft-authentication-library-for-js/pull/7467

and many more ... It looks like the merge request took the whole January to get created - and 3 weeks to get revied and merged - and by today there is still no working release out.

Even worse, I can't upgrade my packages and more and more Vulnerabilities get reported on older packages that can't be upgraded. :(

TomTom-Labs avatar Feb 19 '25 07:02 TomTom-Labs

+1 for this, it would be great to know when the release is going out.

julesblancphin avatar Feb 19 '25 09:02 julesblancphin

msal is still not stable with react v19, it is supporting upto react v18 only

jeetusingh247 avatar Feb 23 '25 09:02 jeetusingh247

+1

This issue is holding my organisation back in our upgrade path to React 19 and resolution would be greatly appreciated :)

luked177 avatar Feb 25 '25 11:02 luked177

There have already been several attempts to update MSAL for React 19 and none seem to be moving forward. Please, there are many projects that urgently need to be updated.

#7548 #7467 #7520

H-Pascual avatar Feb 27 '25 15:02 H-Pascual

This is also holding back upgrades within our organisation, it's the last package not supporting React 19. Any ETA?

JackMorganNZ avatar Feb 28 '25 00:02 JackMorganNZ

Hi! Just to confirm what others have written: It's the same for us, we sadly can't move to React 19, and azure/msal-react is the only package hindering us.

We tried a forced install, too, just for funsies, however, this of course immediately causes our app to crash:

Uncaught SyntaxError: local binding for export 'import_react3' not found

AnMW avatar Mar 03 '25 09:03 AnMW

@AnMW

I've managed to upgrade to react@19 by adding "overrides" in package.json. Haven't run into any issues since January

"overrides": {
  "@azure/msal-react": {
    "react": "^16.8.0 || ^17 || ^18 || ^19"
  }
}

Aliaksei-Martsinkevich avatar Mar 14 '25 12:03 Aliaksei-Martsinkevich

See this pull request: https://github.com/AzureAD/microsoft-authentication-library-for-js/pull/7710

Ben-CA avatar Apr 28 '25 19:04 Ben-CA