Describe the Bug
Hi, I just deployed my payload app with docker and the docker image has been successfully deployed.
But when I was accessing my app it threw an error like this:
[ReferenceError: File is not defined]
⨯ unhandledRejection: [ReferenceError: File is not defined]
⨯ unhandledRejection: [ReferenceError: File is not defined]
I found related issue in next's repository vercel/next.js#56032 and the solution is by upgrading node version to v20, and after I implement this solution my app is running successfully without the error above.
Do you have plan to upgrade node version in Dockerfile and docker-compose.yaml?
Note:
I also tested my app in local by using node 18, and it threw an error same as i faced in docker
Link to the code that reproduces this issue
vercel/next.js#56032
Reproduction Steps
services:
payload:
+ image:node:20-alpine
- image:node:18-alpine
Which area(s) are affected?
Not sure
Environment Info
Binaries:
Node: 18.20.8
npm: 10.8.2
Yarn: 4.9.1
pnpm: 10.33.0
Relevant Packages:
payload: 3.78.0
next: 15.2.9
@payloadcms/db-postgres: 3.78.0
@payloadcms/next: 3.78.0
@payloadcms/richtext-lexical: 3.78.0
react: 19.0.0
react-dom: 19.0.0
Operating System:
Platform: Linux fedora 6.19.8-100.fc42.x86_6
Arch: x64
Version: Linux fedora 6.19.8
Available memory (MB): 18120
Available CPU cores: 12
Describe the Bug
Hi, I just deployed my payload app with docker and the docker image has been successfully deployed.
But when I was accessing my app it threw an error like this:
I found related issue in next's repository vercel/next.js#56032 and the solution is by upgrading node version to v20, and after I implement this solution my app is running successfully without the error above.
Do you have plan to upgrade node version in Dockerfile and docker-compose.yaml?
Note:
I also tested my app in local by using node 18, and it threw an error same as i faced in docker
Link to the code that reproduces this issue
vercel/next.js#56032
Reproduction Steps
services: payload: + image:node:20-alpine - image:node:18-alpineWhich area(s) are affected?
Not sure
Environment Info