Issue
I am having trouble running my NestJS app in production mode. After running nest build
or nest build --webpack
, my dist
folder does not contain all the required modules, and I get an error when trying to run node main.js
:
Error: Cannot find module '@nestjs/core'
I could not find any clear instructions on https://docs.nestjs.com/ on how to correctly build an app for production, so maybe I am missing something?
Rewritten Issue
I am having trouble running my NestJS app in production mode. After running nest build
or nest build --webpack
, my dist
folder does not contain all the required modules. When I try to run node main.js
, I get the following error:
Error: Cannot find module '@nestjs/core'
I looked through the NestJS documentation but I could not find any clear instructions on how to correctly build an app for production, so I think I may be missing something.