You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of Deno's Buffer polyfill does not properly export the File class, despite this being documented in the official Deno API documentation. This omission causes runtime errors when using frameworks that depend on this export, particularly in edge runtime environments.
Current Behavior
When attempting to access the File export from the Buffer polyfill, the following error is thrown:
Error: Attempt to export a nullable value for "File"
at eventLoopTick (ext:core/01_core.js:177:7)
Expected Behavior
According to the Deno documentation, the Buffer implementation should export a File class that extends Blob.
Reproduction
This issue can be reproduced in projects using Next.js with edge runtime, where the edge-runtime attempts to access the File export from the Buffer polyfill.
Potentially other frameworks that rely on the Buffer File export
Any edge computing scenarios using Deno's Node.js compatibility layer
Additional Context
The missing export creates compatibility issues between Deno's Node.js polyfills and existing Node.js-based frameworks, particularly in edge computing scenarios where the File class is expected to be available.
The text was updated successfully, but these errors were encountered:
Environment
Description
The current implementation of Deno's Buffer polyfill does not properly export the File class, despite this being documented in the official Deno API documentation. This omission causes runtime errors when using frameworks that depend on this export, particularly in edge runtime environments.
Current Behavior
When attempting to access the File export from the Buffer polyfill, the following error is thrown:
Error: Attempt to export a nullable value for "File"
at eventLoopTick (ext:core/01_core.js:177:7)
Expected Behavior
According to the Deno documentation, the Buffer implementation should export a File class that extends Blob.
Reproduction
This issue can be reproduced in projects using Next.js with edge runtime, where the edge-runtime attempts to access the File export from the Buffer polyfill.
Technical Details
Impact
This issue affects:
Additional Context
The missing export creates compatibility issues between Deno's Node.js polyfills and existing Node.js-based frameworks, particularly in edge computing scenarios where the File class is expected to be available.
The text was updated successfully, but these errors were encountered: