mattmilburn/strapi-plugin-preview-button

Dependencies issues with Strapi 4.10.5

Closed this issue · 12 comments

dependencyError

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

I am having the same issue.

Getting the same issue

@mattmilburn, is there any plans to fix this?

@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).

@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?

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

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

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

It still works with yarn though

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

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.

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.