Error: perf.getEntriesByName is not a function on npx run
See original GitHub issueExpected 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)
- Used the command
npx is-website-vulnerable <url>
- Accepted install from npm
- 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:
- Created 2 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @ibrahimcesar, looking into it. If you already have the fix in mind, happy to land a PR.
I’m using macOS too but on a previous version (10) which works ok here so I can’t reproduce immediately: