microsoft / azure-devops-extension-sdk

Client SDK for developing Azure DevOps extensions
MIT License
123 stars 38 forks source link

React 17 support by azure-devops-ui #40

Open cveld opened 3 years ago

cveld commented 3 years ago

As there is no clear public outlet for azure-devops-ui support, I will raise my question over here:

When adding azure-devops-ui to a newly created React 17 app I get the following error:

Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.1" from azure-devops-ui@2.167.1
npm ERR! node_modules/azure-devops-ui
npm ERR!   azure-devops-ui@"*" from the root project

So I guess I need to downgrade to React 16. Are there any short term plans to make the UI library compatible with React 17? Or maybe even better, convert it to web components? In order to get it consumed by Blazor, Angular, Vue, etc.

SebastianSchuetze commented 2 years ago

@cveld not sure if this is still up-to-date. But I am using React 17 with these components.

Btw. I don't think anybody will convert React to Angular. Already because MS is committed to use React as a first class library in their web UIs (like AzDO, Office 365 and the Fluent UI)

petersonmichaelj commented 2 years ago

I am able to reproduce this issue as well. I believe you have to be running the latest version of npm. I'm curious if there's any update planned for azure-devops-ui to utilize React 17 or 18?

pbcahill commented 9 months ago

Any update on this? Seems this limitation on using React v16 still exists.

npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project   
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.1" from azure-devops-ui@2.167.82
npm ERR! node_modules/azure-devops-ui
npm ERR!   azure-devops-ui@"^2.167.82" from the root project
jubr commented 3 months ago

Running into this as well, wanting to integrate external React v18 content into the Azure Devops UI.

I found https://developercommunity.visualstudio.com/t/azure-devops-ui-doesnt-support-React-v1/10565285?sort=newest&topics=visual+studio+2019 where the following is stated:

While React doesn’t have an actual EoL policy (just a versioning strategy), we are aware of the benefits that an upgrade to a later version would bring. Unfortunately, upgrading the Azure DevOps UI component library independently from Azure DevOps itself is not an option, and the latter would require a major effort. Luckily this is already in our plans for this year.

Is there any further information on this? How is the progress coming along?