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

There have panic when run lighthouse because of csp_evaluator@1.0.2 is incompatible #12856

Closed
2 tasks done
wqcstrong opened this issue Aug 4, 2021 · 7 comments
Closed
2 tasks done

Comments

@wqcstrong
Copy link

FAQ

URL

[Just install lighthouse and run will display]

What happened?

The lighthouse dependens on csp_evaluator@^1.0.1 and panic in csp_evaluator@1.0.2

What did you expect?

Run lighthouse normally

What have you tried?

Install lighthouse locally instead of global, and install specified version via yarn upgrad csp_evaluator@1.0.1, everything be ok after that.

How were you running Lighthouse?

CLI

Lighthouse Version

lighthouse@8.2.0

Chrome Version

/

Node Version

/

Relevant log output

/
@dazulu
Copy link

dazulu commented Aug 4, 2021

Probably explains why I am getting this today
Screenshot 2021-08-04 at 13 25 11

@wqcstrong
Copy link
Author

Probably explains why I am getting this today
Screenshot 2021-08-04 at 13 25 11

Yep!

@adamraine
Copy link
Member

google/csp-evaluator#36

@javigomez
Copy link

I am also getting this.

Cannot find module 'csp_evaluator/dist/lighthouse/lighthouse_checks.js'\nRequire stack:\n- /node_modules/lighthouse/lighthouse-core/lib/csp-evaluator.js\n- /node_modules/lighthouse/lighthouse-core/audits/csp-xss.js\n- /node_modules/lighthouse/lighthouse-core/config/config-helpers.js\n- /node_modules/lighthouse/lighthouse-core/config/config.js\n- /node_modules/lighthouse/lighthouse-core/index.js\n- /src/domain/lighthouse-report.js\n- /src/domain/lighthouse-reports-manager.js\n- /src/infrastructure/cli-lighthouse.js","timestamp":"2021-08-04T15:24:41.454Z"}}

It all started between 11am and 12am GMT today

@wqcstrong
Copy link
Author

I am also getting this.

Cannot find module 'csp_evaluator/dist/lighthouse/lighthouse_checks.js'\nRequire stack:\n- /node_modules/lighthouse/lighthouse-core/lib/csp-evaluator.js\n- /node_modules/lighthouse/lighthouse-core/audits/csp-xss.js\n- /node_modules/lighthouse/lighthouse-core/config/config-helpers.js\n- /node_modules/lighthouse/lighthouse-core/config/config.js\n- /node_modules/lighthouse/lighthouse-core/index.js\n- /src/domain/lighthouse-report.js\n- /src/domain/lighthouse-reports-manager.js\n- /src/infrastructure/cli-lighthouse.js","timestamp":"2021-08-04T15:24:41.454Z"}}

It all started between 11am and 12am GMT today

Because the csp_evaluator@1.0.2 published at that time, see

image

@adamraine
Copy link
Member

This should be resolved with the release of csp_evaluator 1.0.4

@javigomez
Copy link

�I can confirm the issue is resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants