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

history间接依赖导致pnpm下载依赖,运行后无法查找的history/lib/createHashHistory模块 #139

Open
JiangXinYu113 opened this issue Aug 26, 2024 · 0 comments

Comments

@JiangXinYu113
Copy link

lock文件中react-router间接依赖了history: 3.3.0,package.json中没有依赖history,导致使用pnpm下载依赖的时候无法在项目中引用

  /react-router@3.2.0(react@16.14.0):
    resolution: {integrity: sha512-sXlLOg0TRCqnjCVskqBHGjzNjcJKUqXEKnDSuxMYJSPJNq9hROE9VsiIW2kfIq7Ev+20Iz0nxayekXyv0XNmsg==}
    peerDependencies:
      react: ^0.14.0 || ^15.0.0 || ^16.0.0-rc
    dependencies:
      create-react-class: 15.7.0
      history: 3.3.0
      hoist-non-react-statics: 1.2.0
      invariant: 2.2.4
      loose-envify: 1.4.0
      prop-types: 15.8.1
      react: 16.14.0
      warning: 3.0.0
    dev: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant