question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPM v7 throws the following error when using react-pdf with the latest version of React

npm ERR! node_modules/react
npm ERR!   react@"^17.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from @react-pdf/renderer@1.6.12
npm ERR! node_modules/@react-pdf/renderer
npm ERR!   @react-pdf/renderer@"^1.6.10" from the root project

I’m not sure if there are any code migration required or if only the package.json needs to me modified.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:49
  • Comments:48 (10 by maintainers)

github_iconTop GitHub Comments

15reactions
principiorumcommented, Sep 17, 2021

Waiting for React 17 Support

15reactions
KarlBaumanncommented, Apr 18, 2021

@diegomura I would say you don’t have to support outdated libraries in latest versions. If people want to use outdated software, they can use older releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React v17.0 – React Blog
React 17 supports the new JSX transform. We've also backported support for it to React 16.14.0, React 15.7.0, and 0.14.10.
Read more >
React | endoflife.date
React is an open-source JavaScript web framework for building modern web applications. Release, Released, Active Support, Security Support, Latest. 18.2, 6 ...
Read more >
React 18 Upgrade Guide and New Features - Refine Dev
render() API supported in React 17; you will see this warning. Typically, we import a component and render it inside a div element...
Read more >
How to install next-js with react 17? - Stack Overflow
If you've already created the project: remove new versions: npm uninstall next react react-dom @types/react @types/react-dom.
Read more >
Atlaskit + React 17 - Atlassian Ecosystem Design
It looks like Atlaskit still prefers React 16.x and react-scripts 4.x. Is there a plan to cleanly support React 17.x?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found