Comments (6)
@fairbairn check your Node version. I just updated from 10.x.x to 14.18.0 and the error went away. Now the error that @tomMolin posted comes up. I'll fix it again and post the fix.
from lighthouse-ci.
I've just updated my version since December w2020 and I got the same error.
If you edit this file in your end:
Users/tmolin/.nvm/versions/node/v16.2.0/lib/node_modules/lighthouse-ci/lib/lighthouse-reporter.js
And comment the line number 13, lighthouse will work, but no reports will be saved as it doesn't get the module. It's the far that I could go at 3 am hehe.
from lighthouse-ci.
Thanks for the tip, but i use it on an automated CI process. I could do a sed
replacement to bypass the report but if there is another solution
from lighthouse-ci.
The path is incorrect in the file. Alter the path name and it works fine, reports and all.
Currently getting an error:
_eventEmitter = new EventEmitter(); /** @type {CrdpEventEmitter} */
^
SyntaxError: Unexpected token =
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/usr/lib/node_modules/lighthouse-ci/node_modules/lighthouse/lighthouse-core/runner.js:9:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Any ideas?
from lighthouse-ci.
Same error.
from lighthouse-ci.
in the file /usr/lib/node_modules/lighthouse-ci/lib/lighthouse-reporter.js change line 13 to read:
const ReportGenerator = require('lighthouse/report/generator/report-generator');
This will fix the issue above from @tomMolin
from lighthouse-ci.
Related Issues (20)
- LHError: CRI_TIMEOUT HOT 4
- How to test page after authentication required? HOT 1
- how through nodejs code running lighthouse-ci? HOT 1
- Unable to generate report HOT 3
- Cannot read property 'lhr' of undefined HOT 1
- Would you consider supporting lighthouse plugins? HOT 1
- When lighthouse cannot reach site, lighthouse-ci reports all tests passing HOT 1
- Error: No Chrome installations found. HOT 8
- lighthouse-ci doesn't explain why it failed HOT 1
- can not runing in node 8 HOT 1
- No summary table HOT 2
- npm audit (Prototype Pollution vulnerabilities ) HOT 1
- remove snyk as a direct project dependency HOT 1
- v1.10.3 failed HOT 5
- Is there a way to change the name of the report files? HOT 2
- Error on Jenkins, Protocol error (Fetch.disable) HOT 2
- TypeError: categoryIds.forEach is not a function HOT 2
- Update Lighthouse to v7.3.0+ to fix vulnerability HOT 2
- [URL validation bug] : url's without 'http'/'https' returns LHError
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthouse-ci.