remotestorage / remotestorage.js

⬡ JavaScript client library for integrating remoteStorage in apps
https://remotestoragejs.readthedocs.io
MIT License
2.3k stars 141 forks source link

npm install fails with ERESOLVE dependency conflict #1291

Closed rosano closed 1 year ago

rosano commented 1 year ago

Not sure if this is just me? On version 2.0.0-beta.6:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: typedoc@0.19.2
npm ERR! Found: typescript@4.8.4
npm ERR! node_modules/typescript
npm ERR!   dev typescript@"^4.8.3" from the root project
npm ERR!   peer typescript@"*" from ts-loader@8.4.0
npm ERR!   node_modules/ts-loader
npm ERR!     dev ts-loader@"^8.4.0" from the root project
npm ERR!   2 more (ts-node, tsutils)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@"3.9.x || 4.0.x" from typedoc@0.19.2
npm ERR! node_modules/typedoc
npm ERR!   dev typedoc@"^0.19.2" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: typescript@4.0.8
npm ERR! node_modules/typescript
npm ERR!   peer typescript@"3.9.x || 4.0.x" from typedoc@0.19.2
npm ERR!   node_modules/typedoc
npm ERR!     dev typedoc@"^0.19.2" 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
raucao commented 1 year ago

Yes, currently you have to use --force in development, due to the whole Sphinx/SphinxJS/Typescript/Typedoc situation.

See https://github.com/remotestorage/remotestorage.js/pull/1276#issue-1434430936

The ReadTheDocs build actually failed yet again with my last draft PR, which is maddening to me. Someone is working on a SphinxJS fork and it looks like they already fixed typedoc integration, but it is not yet published. Unfortunately, Mozilla seems to have decided to just abandon SphinxJS and let open pull requests sit there for over a year without even a comment.