peerDependencies & testing-library for 2.0.1 in package.json are different in github from npm
See original GitHub issueHi Dawid,
I am using React 17 and the peerDependencies in package.json from here (github) is including it, but the one published in npm registry no (even if they have the same 2.0.1 version).
It will be great to have a new version published in npm registry which also supports React 17 via peerDependencies.
Also you can use the bellow declaration to reduce the peerDependencies:
"peerDependencies": {
"prop-types": "^15.6.0",
"react": ">=15.5.4",
"react-dom": ">=15.5.4",
"react-router-dom": ">=4.1.1"
},
Many thanks, Iulian
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
[BUG] Unable to resolve peer dependency if version contains ...
When resolving a peer dependency that has a ">=" in it's version, npm uses the latest version of that package to compare with...
Read more >NPM Error when adding package as a peer dependency
I've 2 projects, where I use the same global components, and I decided to create a private npm package, when I moved my...
Read more >package.json - npm Docs
When this package is installed as a dependency in another package, the file will be linked where it will be available to that...
Read more >How to make your npm package. Implement your library
This is a wrapper library for “@testing-library/react”. https://github.com/kondows95/react-testing-library-wrapper. 2. Create “tsconfig.json”.
Read more >Getting Started | React Native Testing Library - Open Source
npm install --save-dev @testing-library/react-native ... Native-specific jest matchers from @testing-library/jest-native package add it to your project: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Having this problem too.
Cant use react-router-last-location@2.0.1 with react@17. Using NPM 8.1.2 throws an error in the install. Using previous versions of NPM ignores this problem.
@hinok any update on the above?