-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Build 'Args' does not satisfy the constraint 'PageProps' #8780
Comments
I managed to get it working by replacing the /app directory with the output of the npx command in my existing project. There must be some incompatibility with the /page.tsx that is autogenerated between beta.110 and >= beta.111 that either isn't in the release notes or is there and I missed note of them. |
You should replace src/app/(payload)/admin/[[...segments]]/page.tsx and not_found.tsx with the latest version from the beta branch. Directly upgrading package dependencies did not update the App Router pages. This issue occurs because Next.js’s params are now Promises. https://nextjs.org/docs/canary/app/api-reference/file-conventions/page |
This issue has been automatically locked. |
Describe the Bug
When running the
docker build .
command with a version of payload > beta.110 the build fails at the pnpm run build step with the following error:I tried to create a minimal repro of the issue with the command below, but that also results in an error
Link to the code that reproduces this issue
https://github.com/ArcaneTSGK/payload-docker-repro
Reproduction Steps
Install the packages in the environment info provided, namely any beta version of payload packages > beta.110
Run docker build . with the following dockerfile
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
Binaries:
Node: 20.17.0
pnpm: 9.8.0
Relevant Packages:
payload: 3.0.0-beta.111
next: 15.0.0-canary.173
@payloadcms/db-postgres: 3.0.0-beta.111
@payloadcms/email-nodemailer: 3.0.0-beta.111
@payloadcms/graphql: 3.0.0-beta.111
@payloadcms/next/utilities: 3.0.0-beta.111
@payloadcms/plugin-cloud: 3.0.0-beta.111
@payloadcms/plugin-cloud-storage: 3.0.0-beta.111
@payloadcms/richtext-lexical: 3.0.0-beta.111
@payloadcms/storage-s3: 3.0.0-beta.111
@payloadcms/translations: 3.0.0-beta.111
@payloadcms/ui/shared: 3.0.0-beta.111
react: 19.0.0-rc-77b637d6-20241016
react-dom: 19.0.0-rc-77b637d6-20241016
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Available memory (MB): 32453
Available CPU cores: 16
The text was updated successfully, but these errors were encountered: