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

Karma seems to fail on Node v15 (util.inspect issue) #3587

Closed
jasonwilliams opened this issue Dec 16, 2020 · 3 comments
Closed

Karma seems to fail on Node v15 (util.inspect issue) #3587

jasonwilliams opened this issue Dec 16, 2020 · 3 comments

Comments

@jasonwilliams
Copy link

I'm not sure why i hit this issue, but it seems to fail here.
Here's a stack trace.

TypeError: Function has non-object prototype 'null' in instanceof check
    at Function.[Symbol.hasInstance] (<anonymous>)
    at getConstructorName (node:internal/util/inspect:545:13)
    at formatRaw (node:internal/util/inspect:813:23)
    at formatValue (node:internal/util/inspect:803:10)
    at formatProperty (node:internal/util/inspect:1689:11)
    at formatRaw (node:internal/util/inspect:1017:9)
    at formatValue (node:internal/util/inspect:803:10)
    at formatProperty (node:internal/util/inspect:1689:11)
    at formatRaw (node:internal/util/inspect:1017:9)
    at formatValue (node:internal/util/inspect:803:10)
    at formatProperty (node:internal/util/inspect:1689:11)
    at formatArray (node:internal/util/inspect:1519:17)
    at formatRaw (node:internal/util/inspect:1014:14)
    at formatValue (node:internal/util/inspect:803:10)
    at formatProperty (node:internal/util/inspect:1689:11)
    at formatRaw (node:internal/util/inspect:1017:9)
    at formatValue (node:internal/util/inspect:803:10)
    at formatProperty (node:internal/util/inspect:1689:11)
    at formatRaw (node:internal/util/inspect:1017:9)
    at formatValue (node:internal/util/inspect:803:10)
    at Object.inspect (node:internal/util/inspect:336:10)
    at new Server (/app/node_modules/karma/lib/server.js:67:41)
    at Object.exports.run (/app/node_modules/karma/lib/cli.js:258:7)
    at Object.<anonymous> (/app/node_modules/karma/bin/karma:3:23)
    at Module._compile (node:internal/modules/cjs/loader:1083:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
    at Module.load (node:internal/modules/cjs/loader:948:32)
    at Function.Module._load (node:internal/modules/cjs/loader:789:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:72:12)
    at node:internal/main/run_main_module:17:47
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It seems to be this line which triggers the error above.
https:/karma-runner/karma/blob/master/lib/server.js#L66

Looks related to nodejs/node#35730 ? But I'm not sure.

Karma v 5.2.3
Node v15.0.1

@devoto13
Copy link
Collaborator

devoto13 commented Dec 16, 2020

Well, it indeed looks like a Node bug, which should be (and was) fixed in Node. So we just need to wait for the next Node release. Or what is your expectation here?

@johnjbarton
Copy link
Contributor

We test on v14 LTS so the best fix is to use v14.

@johnjbarton johnjbarton pinned this issue Dec 24, 2020
@devoto13
Copy link
Collaborator

This has been fixed in Node 15.5 (see changelog).

@devoto13 devoto13 unpinned this issue Jan 20, 2021
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

3 participants