Build Error - ReferenceError: File is not defined [Next v13.4.13]
Unanswered
Gulf menhaden posted this in #help-forum
Gulf menhadenOP
"react-dropzone": "^14.2.3"
Error occurred prerendering page "/onboarding/business". Read more: https://nextjs.org/docs/messages/prerender-error
ReferenceError: File is not defined
..
- info Generating static pages (17/17)
/(logged)/profile/business/page: /profile/business
/(logged)/profile/hustler/page: /profile/hustler
Error occurred prerendering page "/onboarding/business". Read more: https://nextjs.org/docs/messages/prerender-error
ReferenceError: File is not defined
..
- info Generating static pages (17/17)
Export encountered errors on following paths:/(logged)/onboarding/business/page: /onboarding/business
/(logged)/profile/business/page: /profile/business
/(logged)/profile/hustler/page: /profile/hustler
2 Replies
Gulf menhadenOP
imageFile: z.instanceof(File).optional(),
throws the errorGharial
Ran into the same issue.
Replace File with Blob to fix it.
Replace File with Blob to fix it.