payload-enchants icon indicating copy to clipboard operation
payload-enchants copied to clipboard

Docs reorder plugin crashes on app start

Open sintezcs opened this issue 1 year ago • 4 comments

Payload CMS versions: 3.3.0

Plugin config:

plugins: [
    docsReorder({
      collections: [{ slug: 'artifacts' }], // The feature will be enabled only for collections that are in this array.,
    }),
  ],

Installed the payload-enchants plugin, trying to enable it for a single collection, that is currently empty. The app crashes on start:

Attempted import error: 'useListInfo' is not exported from '@payloadcms/ui' (imported as 'useListInfo').

./node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_re_tde7ehpdlm346z4f7hr5beryau/node_modules/@payload-enchants/docs-reorder/dist/components/CollectionDocsOrder/CollectionDocsOrderButton.js

sintezcs avatar Dec 09 '24 19:12 sintezcs

docsReorder is not yet compatible with version 3!

linobino1 avatar Dec 10 '24 06:12 linobino1

Do you have an ETA for this upgrade? I've started with Payload 3, so I don't know the diffs between version 2, can you provide some guidelines on updating the code to make it compatible with Payload 3? If I have time I'll try to do it myself and send a pull request.

alexrah avatar Feb 06 '25 12:02 alexrah

Hey, any news about this issue?

LaBisquerie avatar Feb 27 '25 14:02 LaBisquerie

Hi! @LaBisquerie I also needed this plugin to work with the latest Payload version, so I rewrote it ( mostly used old code ) to work with latest Payload. If anyone is interested, here is my version .

VeiaG avatar Mar 20 '25 20:03 VeiaG