PM2 Throws Module Not Found Error After Server Boot

16 Views Asked by At

My project throws the error "Cannot find module 'index.js'" every time pm2 starts the app after server boot (I don't import index.js anywhere). This problem does not happen when I start it manually with "pm2 start". My main is dist/index in package.json and ecosystem.config.js

I didn't try anything. I couldn't find any solution.

0

There are 0 best solutions below