I've updated today to newest Payload v3.25.0 and I get error after enabling
clientUploadsfor S3 Storage Adapter. After I disabled it I still have this error. It happens on Vercel only, locally works. Admin panel doesn't even load.
getFromImportMap: PayloadComponent not found in importMap {
key: '@payloadcms/storage-s3/client#S3ClientUploadHandler',
PayloadComponent: {
clientProps: {
collectionSlug: 'media',
enabled: false,
extra: undefined,
serverHandlerPath: '/storage-s3-generate-signed-url'
},
path: '@payloadcms/storage-s3/client#S3ClientUploadHandler'
},
schemaPath: ''
} You may need to run the `payload generate:importmap` command to generate the importMap ahead of runtime.I have checked and
payload generate:importmapdoes nothing. Anyone has this issue?
The issue is that locally you have s3 storage disabled. This is why
payload generate:importmapdoesn't generate
S3ClientUploadHandler.
On Vercel, you have storage s3 enabled and it expects you to have that (even when you don't use
clientUploads).
Can you try to include into your build script
pnpm generate:importmaplike
"build": "pnpm generate:importmap && pnpm build"?
Thank you, it worked! I have used build script:
"build": "payload generate:importmap && cross-env NODE_OPTIONS=--no-deprecation next build",i have this issue right now. is there something that is defined locally that determines if s3 storage is enabled?
I am also seeing this issue. Running
payload generate:importmapjust says
No new imports found, skipping writing import mapI managed to resolve the issue by downgrading all payload packages to
3.24.0I also get this error
This worked for me, thanks
Same. I am on 3.24 right now. But I don't think this is the right way to go about resolving this.
Did you manage to resolve it?
Star
Discord
online
Get dedicated engineering support directly from the Payload team.