Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install MSAL React in React 19 #7481

Open
ritwickg opened this issue Dec 23, 2024 · 9 comments
Open

Unable to install MSAL React in React 19 #7481

ritwickg opened this issue Dec 23, 2024 · 9 comments
Labels
feature-unconfirmed msal-browser Related to msal-browser package msal-react Related to @azure/msal-react Needs: Attention 👋 Awaiting response from the MSAL.js team public-client Issues regarding PublicClientApplications question Customer is asking for a clarification, use case or information.

Comments

@ritwickg
Copy link

Core Library

MSAL.js (@azure/msal-browser)

Wrapper Library

MSAL React (@azure/msal-react)

Public or Confidential Client?

Public

Description

Msal_React_Version_Error

The msal react installation in react 19 is failing with the attached error

@ritwickg ritwickg added feature-unconfirmed question Customer is asking for a clarification, use case or information. labels Dec 23, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Dec 23, 2024
@github-actions github-actions bot added msal-browser Related to msal-browser package msal-react Related to @azure/msal-react public-client Issues regarding PublicClientApplications labels Dec 23, 2024
@veersuman1999
Copy link

Unable to install MSAL react in react 19.
Is react 19 supported for the current version of MSAL ?
When can we expect MSAL to support React 19 ?

Anyone please help!!!

@stevebuckco
Copy link

Same issue. This library is preventing us from upgrading to React 19.

@SunnyJohal
Copy link

SunnyJohal commented Dec 26, 2024

FYI, in the meantime you can just add the following override to your package.json as a workaround
(before you run npm i @azure/msal-react:

  "overrides": {
    "react": "$react"
  },

@SunnyJohal
Copy link

If you want to scope the override to just the msal package do this instead:

  "overrides": {
    "@azure/msal-react": {
      "react": "$react"
    }
  },

@Lomnus
Copy link

Lomnus commented Dec 28, 2024

Hope upgrading to React19 without any unexcepted operation

@veersuman1999
Copy link

"overrides": {
"@azure/msal-react": {
"react": "$react"
}
},
@SunnyJohal Thanks for the help. This works fine for now.

@lucas-garrido
Copy link

Could you please merge the PR ...

@andersthorbeck
Copy link

PR #7467 seems related to this issue, but it is currently not yet merged.

@andersthorbeck
Copy link

Ah, this issue seems to be a duplicate of #7455.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-unconfirmed msal-browser Related to msal-browser package msal-react Related to @azure/msal-react Needs: Attention 👋 Awaiting response from the MSAL.js team public-client Issues regarding PublicClientApplications question Customer is asking for a clarification, use case or information.
Projects
None yet
Development

No branches or pull requests

7 participants