ReferenceError: File is not defined #56032
Replies: 8 comments 11 replies
-
I was getting this error on a page that was using Upgrading to Node 20 fixed it |
Beta Was this translation helpful? Give feedback.
-
I got the same error when deploying. It works great on my machine because I am running node 20x. Vercel deployment settings out of the box uses node 18x. So i went to vercel app settings and changed it to 20x, not it works like a charm. |
Beta Was this translation helpful? Give feedback.
-
Can confirm, migrating to Node 20 fixed the issue |
Beta Was this translation helpful? Give feedback.
-
I've encountered the same issue and I can confirm upgrading to Node 20 fixes it. |
Beta Was this translation helpful? Give feedback.
-
that was easy |
Beta Was this translation helpful? Give feedback.
-
I upped to |
Beta Was this translation helpful? Give feedback.
-
The same issue occurred, and the same resolution applied. It was failing in my GitHub Actions, but upgrading to Node 20.x in main.yml solved the issue. |
Beta Was this translation helpful? Give feedback.
-
Upgrading to v20 solved this, even locally. |
Beta Was this translation helpful? Give feedback.
-
Summary
Fail on build
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions