[Pkg-javascript-devel] Bug#980195: ts-node: autopkgtest regression in testing: Cannot find name 'process'

Paul Gevers elbrus at debian.org
Fri Jan 15 21:14:42 GMT 2021


Source: ts-node
Version: 9.1.1-4
X-Debbugs-CC: debian-ci at lists.debian.org
Severity: serious
User: debian-ci at lists.debian.org
Usertags: regression

Dear maintainer(s),

With a very recent change in testing the autopkgtest of your package
started to fail. I copied some of the output at the bottom of this
report. Can you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

https://ci.debian.net/data/autopkgtest/testing/amd64/t/ts-node/9718737/log.gz

  39 passing (1m)
  8 failing

  1) ts-node
       cli
         should provide registered information globally:
     Uncaught expected [Error: Command failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--project
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/tsconfig.json"
tests/env

/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
tests/env.ts(1,20): error TS2580: Cannot find name 'process'. Do you
need to install type definitions for node? Try `npm i --save-dev
@types/node`.

    at createTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513:12)
    at reportTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:517:19)
    at getOutput
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:752:36)
    at Object.compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:968:32)
    at Module.m._compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .ts]
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
] to equal null
  AssertionError: expected [Error: Command failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--project
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/tsconfig.json"
tests/env


/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
      return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  tests/env.ts(1,20): error TS2580: Cannot find name 'process'. Do you
need to install type definitions for node? Try `npm i --save-dev
@types/node`.

      at createTSError (src/index.ts:513:12)
      at reportTSError (src/index.ts:517:19)
      at getOutput (src/index.ts:752:36)
      at Object.compile (src/index.ts:968:32)
      at Module.m._compile (src/index.ts:1056:42)
      at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Object.require.extensions.<computed> [as .ts]
(src/index.ts:1059:12)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
  ] to equal null
      at
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/dist/index.spec.js:123:39
      at ChildProcess.exithandler (child_process.js:315:5)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:286:5)

  2) ts-node
       cli
         should provide registered information on register:
     Uncaught AssertionError: expected [Error: Command failed: node -r
ts-node/register env.ts

/usr/share/nodejs/ts-node/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
env.ts(1,20): error TS2580: Cannot find name 'process'. Do you need to
install type definitions for node? Try `npm i --save-dev @types/node`.

    at createTSError (/usr/share/nodejs/ts-node/src/index.ts:513:12)
    at reportTSError (/usr/share/nodejs/ts-node/src/index.ts:517:19)
    at getOutput (/usr/share/nodejs/ts-node/src/index.ts:752:36)
    at Object.compile (/usr/share/nodejs/ts-node/src/index.ts:968:32)
    at Module.m._compile (/usr/share/nodejs/ts-node/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .ts]
(/usr/share/nodejs/ts-node/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
] to equal null
      at
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/dist/index.spec.js:132:39
      at ChildProcess.exithandler (child_process.js:315:5)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:286:5)

  3) ts-node
       cli
         should preserve `ts-node` context with child process:
     Uncaught expected [Error: Command failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--project
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/tsconfig.json"
tests/child-process

/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
tests/child-process.ts(1,22): error TS2307: Cannot find module 'path' or
its corresponding type declarations.
tests/child-process.ts(2,22): error TS2307: Cannot find module
'child_process' or its corresponding type declarations.
tests/child-process.ts(4,11): error TS2304: Cannot find name '__dirname'.

    at createTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513:12)
    at reportTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:517:19)
    at getOutput
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:752:36)
    at Object.compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:968:32)
    at Module.m._compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .ts]
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
] to equal null
  AssertionError: expected [Error: Command failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--project
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/tsconfig.json"
tests/child-process


/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
      return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  tests/child-process.ts(1,22): error TS2307: Cannot find module 'path'
or its corresponding type declarations.
  tests/child-process.ts(2,22): error TS2307: Cannot find module
'child_process' or its corresponding type declarations.
  tests/child-process.ts(4,11): error TS2304: Cannot find name '__dirname'.

      at createTSError (src/index.ts:513:12)
      at reportTSError (src/index.ts:517:19)
      at getOutput (src/index.ts:752:36)
      at Object.compile (src/index.ts:968:32)
      at Module.m._compile (src/index.ts:1056:42)
      at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Object.require.extensions.<computed> [as .ts]
(src/index.ts:1059:12)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
  ] to equal null
      at
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/dist/index.spec.js:318:39
      at ChildProcess.exithandler (child_process.js:315:5)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:286:5)

  4) ts-node
       cli
         should ignore .d.ts files:
     Uncaught expected [Error: Command failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--project
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/tsconfig.json"
tests/import-order/importer

/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
tests/import-order/importer.ts(1,11): error TS2580: Cannot find name
'require'. Do you need to install type definitions for node? Try `npm i
--save-dev @types/node`.

    at createTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513:12)
    at reportTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:517:19)
    at getOutput
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:752:36)
    at Object.compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:968:32)
    at Module.m._compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .ts]
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
] to equal null
  AssertionError: expected [Error: Command failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--project
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/tsconfig.json"
tests/import-order/importer


/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
      return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  tests/import-order/importer.ts(1,11): error TS2580: Cannot find name
'require'. Do you need to install type definitions for node? Try `npm i
--save-dev @types/node`.

      at createTSError (src/index.ts:513:12)
      at reportTSError (src/index.ts:517:19)
      at getOutput (src/index.ts:752:36)
      at Object.compile (src/index.ts:968:32)
      at Module.m._compile (src/index.ts:1056:42)
      at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Object.require.extensions.<computed> [as .ts]
(src/index.ts:1059:12)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
  ] to equal null
      at
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/dist/index.spec.js:346:39
      at ChildProcess.exithandler (child_process.js:315:5)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:286:5)

  5) ts-node
       cli
         should support script mode:
     Uncaught expected [Error: Command failed:
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node-script
tests/scope/a/log

/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
index.ts(1,18): error TS2307: Cannot find module 'path' or its
corresponding type declarations.
index.ts(3,33): error TS2304: Cannot find name '__filename'.

    at createTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513:12)
    at reportTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:517:19)
    at getOutput
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:752:36)
    at Object.compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:968:32)
    at Module.m._compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .ts]
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:903:19)
] to equal null
  AssertionError: expected [Error: Command failed:
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node-script
tests/scope/a/log


/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
      return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  index.ts(1,18): error TS2307: Cannot find module 'path' or its
corresponding type declarations.
  index.ts(3,33): error TS2304: Cannot find name '__filename'.

      at createTSError (src/index.ts:513:12)
      at reportTSError (src/index.ts:517:19)
      at getOutput (src/index.ts:752:36)
      at Object.compile (src/index.ts:968:32)
      at Module.m._compile (src/index.ts:1056:42)
      at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Object.require.extensions.<computed> [as .ts]
(src/index.ts:1059:12)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Module.require (internal/modules/cjs/loader.js:903:19)
  ] to equal null
      at
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/dist/index.spec.js:387:43
      at ChildProcess.exithandler (child_process.js:315:5)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:286:5)

  6) ts-node
       cli
         should read tsconfig relative to realpath, not symlink, in
scriptMode:
     Uncaught expected [Error: Command failed:
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node-script
tests/main-realpath/symlink/symlink.tsx

/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
target.tsx(3,4): error TS2304: Cannot find name 'React'.

    at createTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513:12)
    at reportTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:517:19)
    at getOutput
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:752:36)
    at Object.compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:968:32)
    at Module.m._compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .tsx]
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
] to equal null
  AssertionError: expected [Error: Command failed:
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node-script
tests/main-realpath/symlink/symlink.tsx


/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
      return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  target.tsx(3,4): error TS2304: Cannot find name 'React'.

      at createTSError (src/index.ts:513:12)
      at reportTSError (src/index.ts:517:19)
      at getOutput (src/index.ts:752:36)
      at Object.compile (src/index.ts:968:32)
      at Module.m._compile (src/index.ts:1056:42)
      at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Object.require.extensions.<computed> [as .tsx]
(src/index.ts:1059:12)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
  ] to equal null
      at
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/dist/index.spec.js:395:47
      at ChildProcess.exithandler (child_process.js:315:5)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:286:5)

  7) ts-node
       cli
         should transpile files inside a node_modules directory when not
ignored:
     done() invoked with non-Error: Unexpected error: Error: Command
failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--script-mode tests/from-node-modules/from-node-modules

/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
from-node-modules.ts(5,15): error TS2580: Cannot find name 'require'. Do
you need to install type definitions for node? Try `npm i --save-dev
@types/node`.
from-node-modules.ts(6,15): error TS2580: Cannot find name 'require'. Do
you need to install type definitions for node? Try `npm i --save-dev
@types/node`.

    at createTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513:12)
    at reportTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:517:19)
    at getOutput
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:752:36)
    at Object.compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:968:32)
    at Module.m._compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .ts]
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)

stdout:

stderr:

/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
from-node-modules.ts(5,15): error TS2580: Cannot find name 'require'. Do
you need to install type definitions for node? Try `npm i --save-dev
@types/node`.
from-node-modules.ts(6,15): error TS2580: Cannot find name 'require'. Do
you need to install type definitions for node? Try `npm i --save-dev
@types/node`.

    at createTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513:12)
    at reportTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:517:19)
    at getOutput
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:752:36)
    at Object.compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:968:32)
    at Module.m._compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .ts]
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)

  Error: done() invoked with non-Error: Unexpected error: Error: Command
failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--script-mode tests/from-node-modules/from-node-modules


/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
      return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  from-node-modules.ts(5,15): error TS2580: Cannot find name 'require'.
Do you need to install type definitions for node? Try `npm i --save-dev
@types/node`.
  from-node-modules.ts(6,15): error TS2580: Cannot find name 'require'.
Do you need to install type definitions for node? Try `npm i --save-dev
@types/node`.

      at createTSError (src/index.ts:513:12)
      at reportTSError (src/index.ts:517:19)
      at getOutput (src/index.ts:752:36)
      at Object.compile (src/index.ts:968:32)
      at Module.m._compile (src/index.ts:1056:42)
      at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Object.require.extensions.<computed> [as .ts]
(src/index.ts:1059:12)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)

  stdout:

  stderr:


/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
      return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  from-node-modules.ts(5,15): error TS2580: Cannot find name 'require'.
Do you need to install type definitions for node? Try `npm i --save-dev
@types/node`.
  from-node-modules.ts(6,15): error TS2580: Cannot find name 'require'.
Do you need to install type definitions for node? Try `npm i --save-dev
@types/node`.

      at createTSError (src/index.ts:513:12)
      at reportTSError (src/index.ts:517:19)
      at getOutput (src/index.ts:752:36)
      at Object.compile (src/index.ts:968:32)
      at Module.m._compile (src/index.ts:1056:42)
      at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Object.require.extensions.<computed> [as .ts]
(src/index.ts:1059:12)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)

      at /usr/share/nodejs/mocha/lib/runnable.js:402:21
      at
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/dist/index.spec.js:474:28
      at ChildProcess.exithandler (child_process.js:315:5)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:286:5)

  8) ts-node
       cli
         issue #884
           should compile:
     Uncaught expected [Error: Command failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--project tests/issue-884/tsconfig.json tests/issue-884

/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
tests/issue-884/index.ts(3,1): error TS2580: Cannot find name 'require'.
Do you need to install type definitions for node? Try `npm i --save-dev
@types/node`.

    at createTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513:12)
    at reportTSError
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:517:19)
    at getOutput
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:752:36)
    at Object.compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:968:32)
    at Module.m._compile
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1056:42)
    at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Object.require.extensions.<computed> [as .ts]
(/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
] to equal null
  AssertionError: expected [Error: Command failed:
"/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/tests/node_modules/.bin/ts-node"
--project tests/issue-884/tsconfig.json tests/issue-884


/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/src/index.ts:513
      return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  tests/issue-884/index.ts(3,1): error TS2580: Cannot find name
'require'. Do you need to install type definitions for node? Try `npm i
--save-dev @types/node`.

      at createTSError (src/index.ts:513:12)
      at reportTSError (src/index.ts:517:19)
      at getOutput (src/index.ts:752:36)
      at Object.compile (src/index.ts:968:32)
      at Module.m._compile (src/index.ts:1056:42)
      at Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Object.require.extensions.<computed> [as .ts]
(src/index.ts:1059:12)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
  ] to equal null
      at
/tmp/autopkgtest-lxc.cgibtj7d/downtmp/autopkgtest_tmp/smokeed1RaQ/dist/index.spec.js:359:47
      at ChildProcess.exithandler (child_process.js:315:5)
      at maybeClose (internal/child_process.js:1021:16)
      at Process.ChildProcess._handle.onexit
(internal/child_process.js:286:5)



autopkgtest [21:07:02]: test pkg-js-autopkgtest: -----------------------]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210115/62ce6c69/attachment.sig>


More information about the Pkg-javascript-devel mailing list