skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

ReferenceError: Must call super constructor in derived class before accessing 'this' #346

Open dy opened 1 year ago

dy commented 1 year ago

Skypack apparently broke some packages by introducing building that generates invalid js.

We used spectjs via https://cdn.skypack.dev/spect, and now it produces error:

tst.js:83 ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor
    at new m (spect.js:32:8)
    at c (spect.js:18:12)

That's because skypack does some fancy transform here.

That error isn't there in the original file in the repository nor via cdn.jsdelivr.net/spect.