finkinfridom / payload-cloudinary-plugin

Upload media to Cloudinary service
MIT License
61 stars 4 forks source link

Error: Types of parameters 'config' and 'config' are incompatible. #29

Closed shubhamkashyapdev closed 1 year ago

shubhamkashyapdev commented 1 year ago

Type 'import("c:/WebDevelopment/MyProjects/Projects/portfolio/portfolio_backend/node_modules/payload-cloudinary-plugin/node_modules/payload/dist/config/types").Plugin' is not assignable to type 'import("c:/WebDevelopment/MyProjects/Projects/portfolio/portfolio_backend/node_modules/payload/dist/config/types").Plugin'. Types of parameters 'config' and 'config' are incompatible.

Got this warning after installing the package, its working in development but failing in production environemnt, how can i resolve this?

finkinfridom commented 1 year ago

I'll have a look at the issue and let you know

finkinfridom commented 1 year ago

hey @shubhamwebdesign which version are you using? the latest published? Could you also provide a sample of your code? I just tried on my side and cannot spot any issue

shubhamkashyapdev commented 1 year ago

Repo URL https://github.com/shubhamwebdesign/portfolio_backend payload version: "^1.0.9" payload-cloudinary-plugin version: "^0.0.11"

finkinfridom commented 1 year ago

Did you try to upgrade payload to version 1.2.x? Do you get the error at compilation time or runtime?

shubhamkashyapdev commented 1 year ago

I won't be able to upgrade the payload version as only version 1.0.9 is compatible with payload-plugin-seo

shubhamkashyapdev commented 1 year ago

I got the error at both compilation & runtime so i had added the //@ts-ignore

shubhamkashyapdev commented 1 year ago

After deleting and re-installing the node_modules the error is gone