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
mkdir /tmp/work &&cd /tmp/work
npm i -g @nestjs/cli
npx nest new project-name
cd project-name
mv src/main.ts src/main.mts
npm run start
nest start
Error: Cannot find module '/tmp/work/project-name/dist/main'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
at Function.Module._load (node:internal/modules/cjs/loader:885:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Is there an existing issue for this?
Current behavior
works fine when using
main.ts
.Minimum reproduction code
https://github.com/beckend/bug-nestjs-main.mts
Steps to reproduce
Expected behavior
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
9.3.1
Packages versions
Node.js version
18.13.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: