incubator-answer icon indicating copy to clipboard operation
incubator-answer copied to clipboard

React-router-dom version is wrong after npm install dependencies

Open ppchart opened this issue 3 years ago • 2 comments

Because there is no package lock file, after using npm to install dependencies, the version of react-router-dom will use the latest v6.4.3

When react-router updated a TS type (RouteObject) in v6.4.2, there will be the red reporting problem mentioned in this PR


因为没有 package lock file ,所以在使用 npm 安装依赖后,react-router-dom 的版本会使用最新的 v6.4.3

react-router 在 v6.4.2 时更新了一个 TS 类型(RouteObject),会出现这个 PR 提到的报红问题

ppchart avatar Nov 02 '22 08:11 ppchart

Using pnpm will normally lock the version of react-router and react-router-dom to v6.4.0, no problem


使用 pnpm 会正常锁定 react-router 和 react-router-dom 的版本为 v6.4.0,没有问题

ppchart avatar Nov 02 '22 08:11 ppchart

Later versions we will solve the problem of routing type

robinv8 avatar Nov 02 '22 13:11 robinv8