geosolutions-it / MapStore2

The solution to create and share maps, dashboards, geostories with 3D support on the web. And it is open-source too!
https://mapstore.geosolutionsgroup.com/
Other
512 stars 399 forks source link

Check dependencies and fix peer dependencies #4622

Open offtherailz opened 4 years ago

offtherailz commented 4 years ago

Description

There are a lot of peer dependencies that have to be specified (run npm ls to see the latest version), here a list of them at the moment we open this issue:

npm ERR! peer dep missing: draft-js@^0.10.1, required by draft-js-inline-toolbar-plugin@3.0.0
npm ERR! peer dep missing: draft-js@^0.10.1, required by draft-js-plugins-editor@2.1.1
npm ERR! peer dep missing: draft-js@^0.10.1, required by draft-js-side-toolbar-plugin@3.0.1
npm ERR! peer dep missing: draft-js@^0.10.x, required by react-draft-wysiwyg@1.13.2
npm ERR! peer dep missing: history@^4.7.2, required by connected-react-router@6.3.2
npm ERR! peer dep missing: immutable@3.x.x || 4.x.x, required by react-draft-wysiwyg@1.13.2
npm ERR! peer dep missing: react@^15.4.2, required by react-addons-css-transition-group@15.6.2
npm ERR! peer dep missing: react@^0.14.7 || ^15.0.0, required by react-confirm-button@0.0.2
npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by react-container-dimensions@1.3.2
npm ERR! peer dep missing: react@^15.3.0, required by react-copy-to-clipboard@5.0.0
npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by react-dropzone@3.13.1
npm ERR! peer dep missing: react@^15.5.0, required by react-image-lightbox@4.2.2
npm ERR! peer dep missing: react@^0.14 || ^15.0.0-rc || ^15.0, required by react-input-autosize@1.1.4
npm ERR! peer dep missing: react@^0.14.9 || ^15.0.0, required by react-intl@2.3.0
npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by react-joyride@1.10.1
npm ERR! peer dep missing: react@^0.14.9 || ^15.3.0, required by react-motion@0.5.0
npm ERR! peer dep missing: react@0.14.x || ^15.0.0, required by react-notification-system@0.2.14
npm ERR! peer dep missing: react@^15, required by react-router@4.1.1
npm ERR! peer dep missing: react@0.13 - 15, required by react-scroll-up@1.3.0
npm ERR! peer dep missing: react@^0.14 || ^15.0.0-rc || ^15.0, required by react-select@1.0.0-rc.4
npm ERR! peer dep missing: react@0.13.x || 0.14.x || 15.x.x, required by react-share@1.15.1
npm ERR! peer dep missing: react@^15.0.0 || ^0.14.0, required by react-swipeable-views@0.12.2
npm ERR! peer dep missing: react@^15.0.0, required by react-transition-group@1.1.3
npm ERR! peer dep missing: react@^15.3.0, required by react-twitter-widgets@1.3.0
npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by react-widgets@3.5.0
npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by recharts@0.22.4
npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by recompose@0.24.0
npm ERR! peer dep missing: react@^0.14.9 || ^15.3.0, required by redux-devtools@3.4.0
npm ERR! peer dep missing: react@^0.14.9 || ^15.3.0, required by redux-devtools-dock-monitor@1.1.2
npm ERR! peer dep missing: react@^0.14.9 || ^15.3.0, required by redux-devtools-log-monitor@1.3.0
npm ERR! peer dep missing: react-dom@^0.14.0 || ^15.0.0, required by react-container-dimensions@1.3.2
npm ERR! peer dep missing: react-dom@^15.5.0, required by react-image-lightbox@4.2.2
npm ERR! peer dep missing: react-dom@^0.14.0 || ^15.0.0, required by react-joyride@1.10.1
npm ERR! peer dep missing: react-dom@0.14.x || ^15.0.0, required by react-notification-system@0.2.14
npm ERR! peer dep missing: react-dom@^0.14 || ^15.0.0-rc || ^15.0, required by react-select@1.0.0-rc.4
npm ERR! peer dep missing: react-dom@^15.0.0, required by react-transition-group@1.1.3
npm ERR! peer dep missing: react-dom@^0.14.0 || ^15.0.0, required by react-widgets@3.5.0
npm ERR! peer dep missing: react-redux@^4.0.0 || ^5.0.0, required by redux-devtools@3.4.0
npm ERR! peer dep missing: react-router@^4.3.1, required by connected-react-router@6.3.2
npm ERR! peer dep missing: webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc, required by babel-loader@6.2.10
npm ERR! peer dep missing: draft-js@^0.10.5, required by find-with-regex@1.1.3
npm ERR! peer dep missing: draft-js@^0.10.5, required by find-with-regex@1.1.3
npm ERR! peer dep missing: draft-js@^0.10.5, required by find-with-regex@1.1.3
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: ol@~5.0, required by @terrestris/ol-util@3.0.1
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: draft-js@^0.10.x, required by draftjs-utils@0.9.4
npm ERR! peer dep missing: draft-js@^0.10.x, required by html-to-draftjs@1.4.0
npm ERR! peer dep missing: immutable@3.x.x || 4.x.x, required by draftjs-utils@0.9.4
npm ERR! peer dep missing: immutable@3.x.x || 4.x.x, required by html-to-draftjs@1.4.0
npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by react-modal@1.9.7
npm ERR! peer dep missing: react-dom@^0.14.0 || ^15.0.0, required by react-modal@1.9.7
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: react@^0.14 || ^15.0.0-rc || ^15.0, required by react-input-autosize@1.1.4
npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by react-smooth@0.3.0
npm ERR! peer dep missing: react@^0.14.7 || ^15.0.0, required by react-resize-detector@0.4.1
npm ERR! peer dep missing: react-dom@^0.14.0 || ^15.0.0, required by react-smooth@0.3.0
npm ERR! peer dep missing: react@^15.0.0, required by react-json-tree@0.10.9
npm ERR! peer dep missing: react-dom@^15.0.0, required by react-json-tree@0.10.9
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
npm ERR! peer dep missing: ajv@^6.9.1, required by ajv-keywords@3.4.1
MV88 commented 3 years ago

this issue requires us to update our dependencies versions

for example npm ERR! peer dep missing: react@0.13 - 15, required by react-scroll-up@1.3.0

this means we are using react-scroll-up@1.3.0 that requires react to be in range 0.13 - 15

to solve it we need to upgrade react-scroll-up to 1.3.7 which has bumped the support for react react-scroll-up 1.3.7 has a peer of react 17 and it does not trigger any warning because we are using "react": "16.10.1",

that said i have started doing it for the libs that are changing only the minor or patch and then evaluate for the one that requires a major version update

@mbarto @offtherailz @allyoucanmap if you have thoughts, let me know