Is Angular 19.0 incompatible with pm2?

Discussão em 'Angular' iniciado por Lucas Tesseron, Novembro 22, 2024.

  1. I can't get pm2 to work with a fresh Angular 19.0 build.

    Here's what I’ve tried:

    • ng new app
    • ng build
    • pm2 start dist/server/server.mjs

    The node server is not listening on any port. The process appears online in pm2, but it doesn't log anything.

    When I launch the server directly using node dist/server/server.mjs, the server starts up and runs as expected. If I downgrade to angular 18.2, the server runs as usual with pm2.

    Environment:

    • node 20.9.0
    • pm2 5.3.1
    • angular 19.0.0

    I have no clue what's happening since the logs are empty. How can I debug this?

    Continue reading...

Compartilhe esta Página