Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js v18 compatibility issue #31

Open
Thesephi opened this issue May 29, 2022 · 0 comments
Open

Node.js v18 compatibility issue #31

Thesephi opened this issue May 29, 2022 · 0 comments

Comments

@Thesephi
Copy link
Member

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:
> somnus@8.3.2-rc.4 pretest
> npm run tslint


> somnus@8.3.2-rc.4 tslint
> tslint -c tslint.json 'src/**/*.ts'


> somnus@8.3.2-rc.4 test
> npm run test:src && npm run test:dist


> somnus@8.3.2-rc.4 test:src
> TARGET_DIST_BUILD=false npm run test:base


> somnus@8.3.2-rc.4 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
@Thesephi Thesephi pinned this issue May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant