invakid404 / payload-blurhash-plugin

Payload CMS plugin for automatic Blurhash encoding of images
The Unlicense
57 stars 5 forks source link

chore: payload v3 support #204

Closed linobino1 closed 3 months ago

linobino1 commented 3 months ago

This PR makes the plugin compatible with PayloadCMS v.3.

I set up a little test app using payload v3.0.0-beta.76 here to see if it really works.

invakid404 commented 3 months ago

Hey @linobino1, thanks for the pull request! I appreciate that you've also taken the time to test this. I will take a more in-depth look later today and will come back to you.

linobino1 commented 3 months ago

I get a TypeError: computeBlurhash is not a function when I import the plugin in my project.

invakid404 commented 3 months ago

@linobino1 I just tested and I can't reproduce. I created a new PayloadCMS v3 project, installed payload-blurhash-plugin@3, added it to the config, and everything seems to work. If you have reproduction steps, please open an issue.

linobino1 commented 3 months ago

@invakid404 Ah sorry, you're right, it works at least when running npm run dev, but payload generate:types and payload generate:schema will fail.

invakid404 commented 3 months ago

@linobino1 I see, it fails for me as well. I'll log an issue and investigate this.