WitchDevelops / notes-app

0 stars 0 forks source link

react mde doesn't build #2

Open WitchDevelops opened 10 months ago

WitchDevelops commented 10 months ago

when trying to deploy on Netlify:

12:47:52 AM: Failed during stage "Install dependencies": dependency_installation script returned non-zero exit code: 1
12:47:52 AM: npm ERR! code ERESOLVE
12:47:52 AM: npm ERR! ERESOLVE could not resolve
12:47:52 AM: npm ERR!
12:47:52 AM: npm ERR! While resolving: react-mde@11.5.0
12:47:52 AM: npm ERR! Found: react@18.2.0
12:47:52 AM: npm ERR! node_modules/react
12:47:52 AM: npm ERR!   react@"^18.2.0" from the root project
12:47:52 AM: npm ERR!   peer react@"^18.2.0" from react-dom@18.2.0
12:47:52 AM: npm ERR!   node_modules/react-dom
12:47:52 AM: npm ERR!     react-dom@"^18.2.0" from the root project
12:47:52 AM: npm ERR!   1 more (react-split)
12:47:52 AM: npm ERR!
12:47:52 AM: npm ERR! Could not resolve dependency:
12:47:52 AM: npm ERR! peer react@"^17.0.0" from react-mde@11.5.0
12:47:52 AM: npm ERR! node_modules/react-mde
12:47:52 AM: npm ERR!   react-mde@"^11.5.0" from the root project
12:47:52 AM: npm ERR!
12:47:52 AM: npm ERR! Conflicting peer dependency: react@17.0.2
12:47:52 AM: npm ERR! node_modules/react
12:47:52 AM: npm ERR!   peer react@"^17.0.0" from react-mde@11.5.0
12:47:52 AM: npm ERR!   node_modules/react-mde
12:47:52 AM: npm ERR!     react-mde@"^11.5.0" from the root project
12:47:52 AM: npm ERR!
WitchDevelops commented 10 months ago

And it seems like it won't build until I either downgrade my React version (don't want to) or find an alternative.

Suggested solutions: