mattmilburn / strapi-plugin-preview-button

A plugin for Strapi CMS that adds a preview button and live view button to the content manager edit view.
MIT License
99 stars 35 forks source link

Dependencies issues with Strapi 4.10.5 #91

Closed OrlandoHurtadoBMC closed 1 year ago

OrlandoHurtadoBMC commented 1 year ago

dependencyError

Hi, updating to Strapi 4.10.5 I'm having this dependency issue

eruiz-impact commented 1 year ago

I am having the same issue.

Qavi-Nizamani commented 1 year ago

Getting the same issue

eruiz-impact commented 1 year ago

@mattmilburn, is there any plans to fix this?

mattmilburn commented 1 year ago

@OrlandoHurtadoBMC @eruiz-impact @Qavi-Nizamani I am unable to reproduce this issue. Can anyone provide more details or your package.json contents?

The plugin requires Strapi ^4.5.6 (which is old) but should still resolve to the latest minor version (eg. 4.x.x).

Qavi-Nizamani commented 1 year ago

@OrlandoHurtadoBMC @eruiz-impact @Qavi-Nizamani I am unable to reproduce this issue. Can anyone provide more details or your package.json contents?

The plugin requires Strapi ^4.5.6 (which is old) but should still resolve to the latest minor version (eg. 4.x.x).

Have you used npm?

zrothauser commented 1 year ago

I was having this problem with Strapi 4.10.5, and have not been able to test with 4.10.6 yet - but it looks like it may be resolved there because of a downgrade. I think the conflict was that in helper-plugin version 4.10.5 they updated the React dependency to use ^18, which conflicted with React ^17.0.2 here.

Here's the commit that reverted that back to ^17.0.2 before Strapi 4.10.6 was released: https://github.com/strapi/strapi/pull/16793/files

llantenv commented 1 year ago

Hi! I tested with the latest version of Strapi (4.10.6) and the latest version of the Plugin (1.1.3) ...but I didn't get the result I expected either. I also use v18.15.0 of Nodejs.

I even tried starting a new instance of Strapi and just adding this plugin... and I didn't get a correct installation either.

Captura de pantalla 2023-05-30 a la(s) 12 23 05

Prabhanshu1808 commented 1 year ago

Hi! I tested with the latest version of Strapi (4.10.6) and the latest version of the Plugin ...but I get the error. I use v18.16.0 of Nodejs. Screenshot from 2023-06-01 12-28-26

Zharkan commented 1 year ago

It still works with yarn though

eruiz-impact commented 1 year ago

Is there any plan to get this working using NPM? @mattmilburn

StrapiBartosh commented 1 year ago

I just tried installing on Strapi 4.11, which was released earlier today. I was able to get it running with no issue. I tried it using two instances of Strapi, one with yarn and one with npm, and both have no issues.

mattmilburn commented 1 year ago

Hey all - This issue certainly seems to be resolved in Strapi's latest version 4.11.0 that released today.

You may need to also upgrade the design system to v1.8.0.