Code Monkey home page Code Monkey logo

Comments (6)

dsuttler avatar dsuttler commented on May 29, 2024 1

@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.

javierlopezdesign avatar javierlopezdesign commented on May 29, 2024

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.

tomMolin avatar tomMolin commented on May 29, 2024

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.

dsuttler avatar dsuttler commented on May 29, 2024

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.

fairbairn avatar fairbairn commented on May 29, 2024

Same error.

from lighthouse-ci.

dsuttler avatar dsuttler commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.