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

Missing Web Standard: File #66

Closed
tranzium opened this issue Oct 15, 2021 · 2 comments
Closed

Missing Web Standard: File #66

tranzium opened this issue Oct 15, 2021 · 2 comments
Labels
fixed-in-next Fixed in next release new api Unsupported new Workers runtime API

Comments

@tranzium
Copy link

When attempting to use a built-in class (File), I am presented with this error:

ReferenceError: File is not defined

Example: if (value instanceof File) {}

Reference: https://developer.mozilla.org/en-US/docs/Web/API/File

Possible discussions regarding File: #48

@mrbbot
Copy link
Contributor

mrbbot commented Oct 16, 2021

Hey! 👋 Thanks for reporting this. Miniflare 2 will include File in the global scope. 👍

@mrbbot mrbbot added new api Unsupported new Workers runtime API fixed-in-next Fixed in next release labels Oct 16, 2021
@mrbbot
Copy link
Contributor

mrbbot commented Oct 27, 2021

Hey! 👋 The first pre-release of Miniflare 2 has just been released, including File in the global scope. You can find the full changelog here and install it with npm i miniflare@next -D. Please let me know if you have any other issues, and feel free to ask questions in the #miniflare channel of the Cloudflare Workers Discord server.

@mrbbot mrbbot closed this as completed Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed-in-next Fixed in next release new api Unsupported new Workers runtime API
Projects
None yet
Development

No branches or pull requests

2 participants