TypeError: Class extends value undefined is not a constructor or null #456
Unanswered
maulikpatel-in
asked this question in
Q&A
Replies: 1 comment
-
The runtime you're using does not support the import * as streams from "web-streams-polyfill/ponyfill";
globalThis.ReadableStream = streams.ReadableStream;
globalThis.WritableStream = streams.WritableStream;
globalThis.TransformStream = streams.TransformStream; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`
zip-file/node_modules/@zip.js/zip.js/dist/zip-fs.js:424
class Crc32Stream extends TransformStream {
^
TypeError: Class extends value undefined is not a constructor or null
at file:///Users/maulikpatel/Documents/dev/dakshay/zip-file/node_modules/@zip.js/zip.js/dist/zip-fs.js:424:28
at file:///Users/maulikpatel/Documents/dev/dakshay/zip-file/node_modules/@zip.js/zip.js/dist/zip-fs.js:4:77
at file:///Users/maulikpatel/Documents/dev/dakshay/zip-file/node_modules/@zip.js/zip.js/dist/zip-fs.js:5:3
at ModuleJob.run (internal/modules/esm/module_job.js:145:37)
at async Loader.import (internal/modules/esm/loader.js:182:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)
`
I'm using
npm i @zip.js/zip.js
and just import library with:`
// tried first:
import * as zip from "@zip.js/zip.js";
// tried second:
import * as zip from "./node_modules/@zip.js/zip.js/dist/zip-fs.js";
`
node version: v12.22.3
Beta Was this translation helpful? Give feedback.
All reactions