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
Problem
I have Angular Universal project and I use this package to create File and Blob polyfills on server side. After updating to Angular v12 I faced some problem with building app.
I’m afraid suggested change would then break this library in nodejs because that is how node deals with ESM / commonjs interop. If docs for the package could be trusted following should work import from web-streams-polyfill/es6 might work.
@RuslanAktaev I don’t have time to work on this, but if you do have and will submit a pull that does not break tests I’ll merge it.
Hello @Gozala, thanks for your answer. I've recreated the issue, since
web-file-polyfill
project has been archived.Original issue
Problem
I have Angular Universal project and I use this package to create File and Blob polyfills on server side. After updating to Angular v12 I faced some problem with building app.
My server.ts file:
When I try to build project, an error throws:
./node_modules/@web-std/blob/src/package.js:4:51-58 - Error: export 'default' (imported as 'streams') was not found in 'web-streams-polyfill' (possible exports: ByteLengthQueuingStrategy, CountQueuingStrategy, ReadableByteStreamController, ReadableStream, ReadableStreamBYOBReader, ReadableStreamBYOBRequest, ReadableStreamDefaultController, ReadableStreamDefaultReader, TransformStream, TransformStreamDefaultController, WritableStream, WritableStreamDefaultController, WritableStreamDefaultWriter)
If I change import in the
@web-std/blob/src/package.js
:import * as streams from "web-streams-polyfill"
It works well.
Steps to reproduce:
npm i
andnpm run dev:ssr
File in which I use @web-std/file
The text was updated successfully, but these errors were encountered: