Sheik
Sheik2mo ago

Deno and NestJs

When trying to run the build of a NestJS application I get this error
[sheik@archlinux dist]$ deno --version
deno 1.46.3 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.5-rusty
typescript 5.5.2
[sheik@archlinux dist]$ deno run -A main.js
error: Uncaught (in promise) ReferenceError: exports is not defined
Object.defineProperty(exports, "__esModule", { value: true });
^
at file:///home/sheik/Documentos/project-name/dist/main.js:2:23
[sheik@archlinux dist]$ deno --version
deno 1.46.3 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.5-rusty
typescript 5.5.2
[sheik@archlinux dist]$ deno run -A main.js
error: Uncaught (in promise) ReferenceError: exports is not defined
Object.defineProperty(exports, "__esModule", { value: true });
^
at file:///home/sheik/Documentos/project-name/dist/main.js:2:23
2 Replies
marvinh.
marvinh.2mo ago
Sounds like a bug, filed an issue for that https://github.com/denoland/deno/issues/25454
GitHub
Bug: exports is undefined in NestJS · Issue #25454 · denoland/d...
Reported on discord: https://discord.com/channels/684898665143206084/1281161740138319872/1281161740138319872 $ deno run -A main.js error: Uncaught (in promise) ReferenceError: exports is not define...
Sheik
Sheik2mo ago
oh thanks