#S3 Plugin Update to 3.24 Causes Config Errors

1 messages · Page 1 of 1 (latest)

summer schoonerBOT
#

I updated to 3.24 since it was expected by S3 plugin, and now I am getting QUITE some errors in my config, anyone seen the same?

blissful hollyBOT
#

Original message from @left bloom - Moved from #general message

karmic canyon
#

Hey @left bloom

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?

left bloom
#

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

karmic canyon
#

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

left bloom
#

Here is an example:

  Type 'import("/Users/didrikbirkemalm/Development/bv-consulting/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/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/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/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

karmic canyon
#

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

left bloom
#

have a trick to get rid of npm?

#

at least all my errors went away! 😄

karmic canyon
#

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

left bloom
#

Yeah, will do, thanks!

karmic canyon
#

I think pnpm even has a migration command like import

#

My pleasure!

left bloom
#

And sorry for jumping the gun on errors lol

karmic canyon
#

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

blissful hollyBOT
left bloom
#

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

karmic canyon
#

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

left bloom
#

Nope, 2.2MB, a small 22kB went smoothly

#

Exactly, only the upload part is timing out

karmic canyon
#

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

#

Have you tried with multiple different files?

left bloom
#

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 ^^

karmic canyon
#

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

left bloom
#

Ah, good point!