Skip to content

Breaking changes v9.0.0 -> v9.1.0? #1283

Closed
@jsjoeio

Description

@jsjoeio

Expected Behavior

ts-node executes start script and app starts on on port 8080 like it used to.

image

image

Actual Behavior

Strange behavior affecting between the child process and the parent process in our app. The child sends a message, the parent gets the process and sends a message back but the child never gets it.

image

Steps to reproduce the problem

  1. git clone https://github.com/cdr/code-server.git && git checkout jsjoeio/ts-node-repro
  2. yarn && yarn add -D ts-node@9.1.0
  3. yarn watch
  4. See output in console (app never starts as it should on port 8080)

Minimal reproduction

^See reproduction steps above. If that doesn't suffice or overcomplicates things, feel free to close this issue.

Specifications

  • ts-node v9.1.0
  • node v12.16.1
  • compiler v4.2.3
  • tsconfig.json, if you're using one:
{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "strict": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "forceConsistentCasingInFileNames": true,
    "outDir": "./out",
    "declaration": true,
    "experimentalDecorators": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "sourceMap": true,
    "tsBuildInfoFile": "./.cache/tsbuildinfo",
    "incremental": true,
    "typeRoots": ["./node_modules/@types", "./typings", "./test/node_modules/@types"],
    "downlevelIteration": true
  },
  "include": ["./src/**/*.ts"],
  "exclude": ["/test", "/lib", "/ci", "/doc"]
}
  • Operating system and version: macOS Big Sur 11.2.2 (20D80)
  • If Windows, are you using WSL or WSL2?: N/A

Additional Context

The ts-node upgrade came through dependabot in coder/code-server#2919. Our tests were passing so we thought it was fine to merge. (And now we have a note to write a test for testing our dev workflow, including use of ts-node to prevent this in the future).

After hours of debugging yesterday, my co-maintainer and I realized something in 9.1.0 (tested both 9.1.0 and 9.1.1) started causing issues. We looked at the release notes but didn't see anything unusual.

I figured it could be helpful to report this just in case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions