michaeldzjap / react-signature-pad-wrapper

A React wrapper for signature pad
MIT License
199 stars 27 forks source link

Support React 18 #43

Closed nunoleong closed 2 years ago

nunoleong commented 2 years ago

I'm assessing upgrade to React 18 for our app.

react-signature-pad-wrapper has a peer dependency on react@"^17.0.1"

Here's the output when running npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: myp-app@2.0.0
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR!   react@"18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.1" from react-signature-pad-wrapper@3.1.3
npm ERR! node_modules/react-signature-pad-wrapper
npm ERR!   react-signature-pad-wrapper@"3.1.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.