Skip to content
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

ReferenceError: File is not defined on 1.27.1 #10946

Closed
mustofa-id opened this issue Oct 28, 2023 · 2 comments · Fixed by #10948
Closed

ReferenceError: File is not defined on 1.27.1 #10946

mustofa-id opened this issue Oct 28, 2023 · 2 comments · Fixed by #10948

Comments

@mustofa-id
Copy link

mustofa-id commented Oct 28, 2023

Describe the bug

ReferenceError: File is not defined
    at Module.form_object (/my-kit-project/src/lib/server/util.ts:25:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async default (/my-kit-project/src/routes/(public)/login/+page.server.ts:15:14)
    at async Module.handle_action_request (/my-kit-project/node_modules/.pnpm/@sveltejs+kit@1.27.1_svelte@4.2.2_vite@4.4.3/node_modules/@sveltejs/kit/src/runtime/server/page/actions.js:149:16)
// util.ts:25
if (value instanceof File) continue;

It seems there's an issue here:


there's no 'File' reference, even in the latest 18th version.

Reproduction

image

Logs

No response

System Info

Ubuntu 20.04
NodeJS 18.16.0 & 18.18.2

Severity

serious, but I can work around it

Additional Information

No response

@eltigerchino
Copy link
Member

Possibly related to the change made here #10920

@gtm-nayan
Copy link
Contributor

Node 20.9 has it as a global but not any of the v18 releases as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants