Relative Content

Tag Archive for javascriptreactjsnpmmonoreponpm-workspaces

How to get multiple major versions of dependency in npm workspaces?

I have a monorepo based on npm workspaces. I use npm@10 at this point. It includes multiple libraries and two websites. For a long time we were stuck with React 17 because we supported very old browsers, and now we can upgrade to React 18, but want to make it incrementally, so it wouldn’t be one very large task that will take a lot of time to do, review and test. However, we encounter a problem where updating libraries leads to problems with applications.