Skip to content

Node.js v18 compatibility issue #31

@Thesephi

Description

@Thesephi

At writing time, this project doesn't seem to be compatible with Node.js v18. Reproduction:

  • use Node.js v18
  • try running npm test
  • bump into this outcome:
> [email protected] pretest
> npm run tslint


> [email protected] tslint
> tslint -c tslint.json 'src/**/*.ts'


> [email protected] test
> npm run test:src && npm run test:dist


> [email protected] test:src
> TARGET_DIST_BUILD=false npm run test:base


> [email protected] test:base
> mocha --require ts-node/register --file test/setup.js -R spec test/**/*.ts test/*.ts

test suite targeting source

TypeError: Cannot set property closed of #<Readable> which has only a getter
    at patch (/workspaces/somnus/node_modules/restify/lib/request.js:848:30)
    at Object.<anonymous> (/workspaces/somnus/node_modules/restify/lib/server.js:33:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:827:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/workspaces/somnus/node_modules/restify/lib/index.js:10:14)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:827:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/workspaces/somnus/src/somnus.ts:22:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module.m._compile (/workspaces/somnus/node_modules/ts-node/src/index.ts:858:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.require.extensions.<computed> [as .ts] (/workspaces/somnus/node_modules/ts-node/src/index.ts:861:12)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:827:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/workspaces/somnus/test/setup.js:17:5)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:827:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.exports.requireOrImport (/workspaces/somnus/node_modules/mocha/lib/esm-utils.js:42:12)
    at Object.exports.loadFilesAsync (/workspaces/somnus/node_modules/mocha/lib/esm-utils.js:55:34)
    at Mocha.loadFilesAsync (/workspaces/somnus/node_modules/mocha/lib/mocha.js:473:19)
    at singleRun (/workspaces/somnus/node_modules/mocha/lib/cli/run-helpers.js:125:15)
    at exports.runMocha (/workspaces/somnus/node_modules/mocha/lib/cli/run-helpers.js:190:10)
    at Object.exports.handler (/workspaces/somnus/node_modules/mocha/lib/cli/run.js:362:11)
    at /workspaces/somnus/node_modules/yargs/build/index.cjs:443:71

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