Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 is currently incompatible with Payload Cloud Storage? #6603

Closed
m-reidy opened this issue Jun 3, 2024 · 3 comments
Closed

V3 is currently incompatible with Payload Cloud Storage? #6603

m-reidy opened this issue Jun 3, 2024 · 3 comments
Labels

Comments

@m-reidy
Copy link

m-reidy commented Jun 3, 2024

Link to reproduction

No response

Payload Version

3.0.0-beta.36

Node Version

v20.13.1

Next.js Version

15.0.0-rc.0

Describe the Bug

v3 appears to be incompatible with the latest version of the official Cloud Storage Plugin - "@payloadcms/plugin-cloud-storage": "^1.1.2". Installation as per the docs throws a type error on admin.webpack.

Unless there's a corresponding beta package I've missed? Give me a shout if so.

I thought I'd post a workaround for v3 until the Cloud Storage plugin is upgraded to remove the webpack config key:

Workaround

export const s3CloudStoragePlugin = (incomingConfig: Config) => {
  const modifiedConfig = cloudStorage({
    collections: {
      // Any relevant collections, e.g. Media as an example here 
      media: {
        adapter: getS3Adapter(), // Your adapter as per the docs
        // Other options
      },
    },
  })(incomingConfig);

  return {
    ...modifiedConfig,
    admin: {},
  };
};

Tested this and it seems happy enough.

Reproduction Steps

  • Install Payload v3
  • Add the official Cloud Storage plugin as per the docs for that package

Adapters and Plugins

@payloadcms/plugin-cloud-storage

@m-reidy m-reidy added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Jun 3, 2024
@AlessioGr
Copy link
Member

Hey @m-reidy this is not the latest version of @payloadcms/plugin-cloud-storage. In v3, you have to make sure ALL payload packages are on the exact same version. So for plugin-cloud-storage, you will have to install version 3.0.0-beta.36

@AlessioGr AlessioGr closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Jun 3, 2024
@m-reidy
Copy link
Author

m-reidy commented Jun 3, 2024

Awesome thanks @AlessioGr

Copy link

github-actions bot commented Sep 7, 2024

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants