Skip to content

divergent behavior between node <script> and node-dev <script> #288

Description

@cdaringe

Problem

  • node myscript.js emits events and logs, but node-dev myscript.js does not.

Reproduction

I've produced a tiny reproduction with minimal but complete instructions here: https://github.com/cdaringe/node-dev-divergent-behavior-workers#demo

  1. run without node-dev: npm run start-without-node-dev
[demo]: running worker method (type: function)
[demo]: error - logged without node-dev, not logged with node-dev Error: bummer, i'm caught in index.ts
[demo]: event - logged without node-dev, not logged with node-dev. Error: bummer, i'm caught in index.ts
  1. run with node-dev: npm start
[demo]: running worker method (type: function)

and the process exits (awaiting respawn, if respawn used)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions