#S3 Plugin Update to 3.24 Causes Config Errors
1 messages · Page 1 of 1 (latest)
Original message from @left bloom - Moved from #general message
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
- Installation - Adding to an existing app - 3. Add the Payload Plugin to your Next.js config
- Migrations - When to run migrations - Postgres
- Field-level Access Control - Config Options - Update
- Uploads - Disabling Local Upload Storage
- Production Deployment - File storage - Using cloud storage providers
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?
Heh, that's what I am trying to accomplish now, I just realized that I am seeing 3.23 flashing some places
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
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
You should definitely stick to one! I'd highly encourage just sticking to pnpm
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
Yeah, will do, thanks!
And sorry for jumping the gun on errors lol
No, no wories at all. I'm glad we got it figured out here
Glad your issue was resolved! :tada: If you want to help make payload better, please give us a :star: on GitHub and review us - It helps us a lot.
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
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
It's possible that these uploads are hitting the 10s Vercel function execution limit I suppose
Have you tried with multiple different files?
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 ^^
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
Ah, good point!