coolaj86 / TextEncoderLite_tmp

Polyfill for the Encoding Living Standard's API
Apache License 2.0
30 stars 19 forks source link

TextEncoder is not a constructor #15

Open ChauVV opened 6 years ago

ChauVV commented 6 years ago

screen shot 2018-05-17 at 2 42 25 pm i have this error.

when i use it. screen shot 2018-05-17 at 2 43 33 pm

screen shot 2018-05-17 at 2 43 00 pm

Ruffio commented 6 years ago

I don't think, that your require statements are correct. Have you read this?

image

But actually I don't think that is correct either as the code says: image

Please make a samle on JSBin or similar site

lpillonel commented 6 years ago

the npm published version is 1.0.1 where only decoder is exposed : https://github.com/coolaj86/TextEncoderLite/blob/v1.0.1/text-encoder-lite.js