You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error when I launch an esm file which uses nestjs/common via tsx:
I found that nestjs/common entrypoint file is executed twice (by placing console.logs).
When I use the previous version of Nodejs this file is executed only once.
The problem happens only when the source file is treated as ESM and only in Nodejs@20.6.0.
I made a reproduction.
Expected behavior
The entrypoint of dependecy is executed only once.
@privatenumber, oops!
node test.mjs (with the same content as in test.mts) in reproduction gives the same error.
Looks like that this is a Node bug.
Sorry
Problem
Hi!
I get an error when I launch an esm file which uses nestjs/common via tsx:
I found that nestjs/common entrypoint file is executed twice (by placing console.logs).
When I use the previous version of Nodejs this file is executed only once.
The problem happens only when the source file is treated as ESM and only in Nodejs@20.6.0.
I made a reproduction.
Expected behavior
The entrypoint of dependecy is executed only once.
Minimal reproduction URL
https://github.com/oljekechoro/tsx-node-nestjs-problem
Version
v3.12.8
Node.js version
v20.6.0
Package manager
yarn
Operating system
macOS
Contributions
The text was updated successfully, but these errors were encountered: