strapi-community / strapi-plugin-publisher

A plugin for Strapi Headless CMS that provides the ability provides the ability to easily schedule publishing and unpublishing of any content type.
https://market.strapi.io/plugins/strapi-plugin-publisher
MIT License
48 stars 17 forks source link

Plugin doesn't work with 4.8.0+ #62

Closed asans closed 1 year ago

asans commented 1 year ago

Looks like it's having peer dependency version conflicts with newer Strapi versions that use react-intl 6+ where the plugin only states ^5+.

Due to this, npm install errors out and requires --force to install.

I tested the plugin with 4.8.2 and it does appear to work fine without any problems.

BabyDino commented 1 year ago

+1 running into the same issue

asans commented 1 year ago

The temporary workaround is to add an override in the package.json:

  "overrides": {
    "strapi-plugin-publisher": {
      "react-intl": "^6.0.0"
    }
  },

Still, it's not the right fix for this situation.

ComfortablyCoding commented 1 year ago

Sorry, been sick for the last week or so. I will try and get a new version published tonight with a fix for this.

BabyDino commented 1 year ago

Feel better! And thank you as always :)

asans commented 1 year ago

Looks like typescript dependency also should be updated to allow 5.x

ComfortablyCoding commented 1 year ago

Looks like typescript dependency also should be updated to allow 5.x

Typescript? This plugin does not have a dependency on typescript.

asans commented 1 year ago

My bad. The new react-intl 6.x is the one that has that dependency. So when upgrading and using react-intl 6 and typescript 5, we get this error. So it's technically react-intl, not this plugin.

ComfortablyCoding commented 1 year ago

This should be fixed in the latest release