Replies: 3 comments 5 replies
-
I'm getting this same issue. The first build from 'Deploy' runs fine, I don't change anything in my git and trigger another build and it gives me: and hangs........ |
Beta Was this translation helpful? Give feedback.
-
The dev batch -1 shows up again every time I use ''NPM run dev' |
Beta Was this translation helpful? Give feedback.
-
In my case, I keep getting a module resolution error even though it works fine locally. Not sure what I'm doing wrong |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I've spent the past 2 days trying to understand Payload's migrations and I couldn't seem to figure it out. Any help would be appreciated, or perhaps a paid-for consultation. Thank you in advance.
My current environments
Local
Stage
Prod
In progress but will be:
The problem
Developing on local environment works perfectly. I make a bunch of changes, they are handled by payload and it works nice and smooth. When I am done with local development, I create migrations via:
payload migrate:create
-> This creates migrations which I then push into the desired branchWhen deployed to Vercel, my ci pipeline starts:
payload migrate && pnpm build
Then, one of the two following issues happens:
? It looks like you've run Payload in dev mode, meaning you've dynamically pushed changes to your database.
and the build process gets stuck. - Since it's a build log, I can not interact with it.17:11:33.673] Types of property 'down' are incompatible. [17:11:33.673] Type 'typeof import("/vercel/path0/migrations/20250403_144756")' is not assignable to type '(args: MigrateDownArgs) => Promise<void>'. [17:11:33.673] Type 'typeof import("/vercel/path0/migrations/20250403_144756")' provides no match for the signature '(args: MigrateDownArgs): Promise<void>'.
Has anyone ever experienced this behavior or is it a misunderstanding on my end? Any help would be appreciated, I can share any additional files and information.
Thank you in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions