question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: perf.getEntriesByName is not a function on npx run

See original GitHub issue

Expected Behavior

  • Return report from the url provided

Current Behavior

  • Throws error perf.getEntriesByName is not a function

Possible Solution

  • Didn’t debugged

Steps to Reproduce (for bugs)

  1. Used the command npx is-website-vulnerable <url>
  2. Accepted install from npm
  3. Returns error with Usage

Context

❯ npx is-website-vulnerable https://www.nexojornal.com.br
Need to install the following packages:
  is-website-vulnerable
Ok to proceed? (y) y
✔ Set up completed in 9.20 seconds!
[    ] Auditing...
Error: perf.getEntriesByName is not a function

Usage:
  is-website-vulnerable https://www.google.com

❯ npx is-website-vulnerable https://www.google.com
✔ Set up completed in 6.35 seconds!
[    ] Auditing...
Error: perf.getEntriesByName is not a function

Usage:
  is-website-vulnerable https://www.google.com

Your Environment

  • Library Version used:
  • Node.js v16.0.0
  • Npm v7.12.0
  • macOS Big Sur 11.4 Desktop
  • npm install -g is-website-vulnerable has the same problem

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
lirantalcommented, Jun 23, 2021

Thanks @ibrahimcesar, looking into it. If you already have the fix in mind, happy to land a PR.

1reaction
lirantalcommented, Jun 23, 2021

I’m using macOS too but on a previous version (10) which works ok here so I can’t reproduce immediately: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: perf.getEntriesByName is not a function · Issue ...
When updating node from 15 to 16 and running lighthouse I get this error: TypeError: perf.getEntriesByName is not a function at Object.exports.
Read more >
NodeJs Performance.getEntriesByType() is not a function
Node version I am using is : 10.22.1 not using any npm packages pure NodeJs code. var {performance} = require('perf_hooks'); ...
Read more >
performance.getEntriesByName() - Web APIs - MDN Web Docs
The getEntriesByName() method returns an array of PerformanceEntry objects currently present in the performance timeline with the given name ...
Read more >
axe-core/axe.js - chromium/src/third_party - Git at Google
throw new Error('clearTimeout has not been defined');. } (function() {. try {. if (typeof setTimeout === 'function') {. cachedSetTimeout = setTimeout;. } ...
Read more >
npx create-react-app my-app DOES NOT work : r/reactjs - Reddit
So I run npm audit fix --force TO retry the npm init react-app my-app method. Same errors. Bottom line is I can't get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found