Sheik
Sheik3mo 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
3 Replies
marvinh.
marvinh.3mo 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
SheikOP3mo ago
oh thanks
fro.profesional
fro.profesional2mo ago
I have a repro for deno v2 and nestjs https://github.com/fro-profesional/deno-2-nestjs
GitHub
GitHub - fro-profesional/deno-2-nestjs
Contribute to fro-profesional/deno-2-nestjs development by creating an account on GitHub.