NPM peer dependency conflict with strapi
broksonic21 opened this issue · 3 comments
When I try updating from 1.1.3 to 2.1.1, I get a peer dependency conflict with npm with latest @strapi plugins
"dependencies": {
"@strapi/plugin-graphql": "4.14.5",
"@strapi/plugin-i18n": "4.14.5",
"@strapi/plugin-users-permissions": "4.14.5",
"@strapi/provider-email-nodemailer": "4.14.5",
"@strapi/provider-upload-cloudinary": "4.14.5",
"@strapi/strapi": "4.14.5",
"mysql": "2.18.1",
"strapi-plugin-populate-deep": "^3.0.0",
"strapi-plugin-preview-button": "2.1.1"
},
npm ERR! Found: strapi-plugin-preview-button@1.1.3
npm ERR! node_modules/strapi-plugin-preview-button
npm ERR! strapi-plugin-preview-button@"2.1.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! strapi-plugin-preview-button@"2.1.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react-intl@6.5.1
npm ERR! node_modules/react-intl
npm ERR! peer react-intl@"^6.4.4" from strapi-plugin-preview-button@2.1.1
npm ERR! node_modules/strapi-plugin-preview-button
npm ERR! strapi-plugin-preview-button@"2.1.1" from the root project
Hi @broksonic21 I have been unable to reproduce this issue. I can also confirm that Strapi and it's internal packages explicitly use react-intl@6.4.1
not 6.5.1
like in your error. Do you have react-intl
installed in your package.json
or maybe another plugin installed that might be conflicting with this?
Although I do have to say... I'm surprised you're not getting a different error because this plugin expects ^react-intl@6.4.4
which is not exactly a match for react-intl@6.4.1
🤔 I may need to adjust that in the next release to use ^react-intl@6.4.1
.
Hi again @broksonic21 This should be fixed now in the latest version 2.2.0 of this plugin 🎉 Let me know how it goes for you 👍🏻
Looks great @mattmilburn - thanks!