Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

S3 Plugin Update to 3.24 Causes Config Errors

default discord avatar
zed0547last year
17

Hey

@543897152229736458



Sorry to hear that! No, I haven't been seeing the same, updating ran smoothly for me on my end. What kind of errors are you seeing?



Did you make sure to update all of your payload packages to 3.24.0 and not just the adapter?

  • default discord avatar
    doddlinlast year

    Heh, that's what I am trying to accomplish now, I just realized that I am seeing 3.23 flashing some places

  • default discord avatar
    zed0547last year

    Ahh, yeah that can get ya sometimes - here's a quick pnpm/npm command that should update all packages for you

    pnpm up payload@latest @payloadcms/*@latest
  • default discord avatar
    doddlinlast year

    Here is an example:


    Type 'Plugin | Plugin' is not assignable to type 'Plugin'.
      Type 'import("/Users/didrikbirkemalm/Development/bv-consulting/node_modules/.pnpm/payload@3.23.0_graphql@16.10.0_monaco-editor@0.52.2_react-dom@19.0.0_react@19.0.0__react@19.0.0_typescript@5.7.3/node_modules/payload/dist/config/types").Plugin' is not assignable to type 'import("/Users/didrikbirkemalm/Development/bv-consulting/node_modules/payload/dist/config/types").Plugin'.
        Types of parameters 'config' and 'config' are incompatible.
          Type 'import("/Users/didrikbirkemalm/Development/bv-consulting/node_modules/payload/dist/config/types").Config' is not assignable to type 'import("/Users/didrikbirkemalm/Development/bv-consulting/node_modules/.pnpm/payload@3.23.0_graphql@16.10.0_monaco-editor@0.52.2_react-dom@19.0.0_react@19.0.0__react@19.0.0_typescript@5.7.3/node_modules/payload/dist/config/types").Config'.
            Types of property 'admin' are incompatible.


    Also I am afraid I have a conflict between npm and pnpm

  • default discord avatar
    zed0547last year

    You should definitely stick to one! I'd highly encourage just sticking to pnpm

  • default discord avatar
    doddlinlast year

    have a trick to get rid of npm?



    at least all my errors went away! 😄

  • default discord avatar
    zed0547last year

    Woohoo nice! Yeah, if you google about migrating from an npm project to pnpm there should be some gists and guides for ya



    Should be straightforward

  • default discord avatar
    doddlinlast year

    Yeah, will do, thanks!

  • default discord avatar
    zed0547last year

    I think pnpm even has a migration command like

    import

    My pleasure!

  • default discord avatar
    doddlinlast year

    And sorry for jumping the gun on errors lol

  • default discord avatar
    zed0547last year

    No, no wories at all. I'm glad we got it figured out here

  • default discord avatar
    doddlinlast year

    What is really weird though, and the reason I updated, is that my S3 uploads times out when on Vercel, but never on localhost



    "An unknown error occurred" and a 504

  • default discord avatar
    zed0547last year

    Hmm interesting, are they over 4.5mb uploads?



    The images themselves show up right? Like uploaded images aren't timing out, just when you try to uplaod an image

  • default discord avatar
    doddlinlast year

    Nope, 2.2MB, a small 22kB went smoothly



    Exactly, only the upload part is timing out

  • default discord avatar
    zed0547last year

    It's possible that these uploads are hitting the 10s Vercel function execution limit I suppose



    Have you tried with multiple different files?

  • default discord avatar
    doddlinlast year

    Yeah, I just updated that to 15s and it passes, so it has to do with that timeout



    Just feels slow for a 2.2MB file to take 10s plus on todays internet ^^

  • default discord avatar
    zed0547last year

    Yeah I'm not too sure there to be honest, I guess it could also be the region the function is deployed to and the region of your s3 bucket



    Generally, if they're far away there'll be excess latency

  • default discord avatar
    doddlinlast year

    Ah, good point!



    I can specify that!

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.