Created
August 14, 2021 16:35
-
-
Save ci7lus/ec31b353bbe40874530cb311fb20ee1c to your computer and use it in GitHub Desktop.
@web-std/blob (imported by src/platform.js, node_modules/@web-std/fetch/src/index.js, node_modules/@web-std/fetch/src/body.js) [!] Error: 'default' is not exported by node_modules/web-streams-polyfill/dist/polyfill.mjs, imported by node_modules/@web-std/fetch/src/body.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@web-std/blob/src/package.js b/node_modules/@web-std/blob/src/package.js | |
index bb7235d..605dd5e 100644 | |
--- a/node_modules/@web-std/blob/src/package.js | |
+++ b/node_modules/@web-std/blob/src/package.js | |
@@ -1,5 +1,5 @@ | |
import { TextEncoder, TextDecoder } from "web-encoding" | |
-import streams from "web-streams-polyfill" | |
+import * as streams from "web-streams-polyfill" | |
const { ReadableStream: ReadableStreamPolyfill } = streams | |
/** @type {typeof globalThis.ReadableStream} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@web-std/fetch/src/body.js b/node_modules/@web-std/fetch/src/body.js | |
index b34235a..3ebc00b 100644 | |
--- a/node_modules/@web-std/fetch/src/body.js | |
+++ b/node_modules/@web-std/fetch/src/body.js | |
@@ -9,7 +9,7 @@ import Stream from 'stream'; | |
import {types} from 'util'; | |
import {Blob} from '@web-std/blob'; | |
-import WebStreams from 'web-streams-polyfill'; | |
+import * as WebStreams from 'web-streams-polyfill'; | |
import {FetchError} from './errors/fetch-error.js'; | |
import {FetchBaseError} from './errors/base.js'; | |
diff --git a/node_modules/@web-std/fetch/src/index.js b/node_modules/@web-std/fetch/src/index.js | |
index e2e7b8b..239539b 100644 | |
--- a/node_modules/@web-std/fetch/src/index.js | |
+++ b/node_modules/@web-std/fetch/src/index.js | |
@@ -18,7 +18,7 @@ import Request, {getNodeRequestOptions} from './request.js'; | |
import {FetchError} from './errors/fetch-error.js'; | |
import {AbortError} from './errors/abort-error.js'; | |
import {isRedirect} from './utils/is-redirect.js'; | |
-import WebStreams from 'web-streams-polyfill'; | |
+import * as WebStreams from 'web-streams-polyfill'; | |
import {pipeline as pump, PassThrough} from 'stream'; | |
import * as Stream from 'stream'; | |
import {Blob} from '@web-std/blob'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment