profile
viewpoint

Ask questionsUncaught TypeError: Cannot read property '_TextDecoder' of undefined

When we bundle https://deno.land/std/uuid/mod.ts and run, the following error occurs.

➜  deno bundle https://deno.land/std/uuid/mod.ts uuid.bundle.js

➜  deno run uuid.bundle.js                                     
error: Uncaught TypeError: Cannot read property '_TextDecoder' of undefined
        exports_6("TextDecoder", TextDecoder = _utils_ts_1._TextDecoder);
                                                           ^

denoland/deno

Answer questions kitsonk

You are using the master branch of standard, it is only compatible with the master branch of Deno. It is by luck that it works with 1.0.2. The version compatible with 1.0.0 is v0.51.0 (https://deno.land/std@v0.51.0/uuid/mod.ts). The version with 1.0.2 is v0.53.0 (https://deno.land/std@v0.53.0/uuid/mod.ts).

useful!

Related questions

{WSL 2} Permission denied (os error 13) hot 1
gRPC in Deno? hot 1
deno remove/uninstall subcommand hot 1
Insight required: Resource (TCP) errors hot 1
TCP accept loop doesn't use for-await hot 1
Support d.ts files hot 1
Restore runtime lib generation capability hot 1
disable flaky tests _048_media_types_jsx and _019_media_types hot 1
Typescript Custom Transformers Support hot 1
reorg directory structure hot 1
Centos 7 GLIBC_2.18 not found hot 1
"deno ast script.ts" hot 1
Text decoding performance abysmally slow. hot 1
"deno ast script.ts" hot 1
Can't build master hot 1
Github User Rank List