Lighthouse-ci: Cannot find module '@lhci/server/src/api/storage/storage-method.js'

Created on 19 Mar 2020  路  5Comments  路  Source: GoogleChrome/lighthouse-ci

When running lhci healthcheck on the latest CLI version ("@lhci/cli": "0.3.10"), I get this error:

Cannot find module '@lhci/server/src/api/storage/storage-method.js'
Require stack:
- /PATH/REDACTED/node_modules/@lhci/cli/src/wizard/wizard.js
- /PATH/REDACTED/node_modules/@lhci/cli/src/cli.js

Things work fine in "@lhci/cli": "0.3.9"

I believe the issue is that #239 introduces a runtime dependency for @lhci/cli on the @lhci/server package, with no corresponding actual package.json dependency. This line specifically.

Workarounds that I can confirm are 馃憤 for me:

  • Explicitly add "@lhci/server": "0.3.10" as a dependency.
  • Downgrade to "@lhci/cli": "0.3.9"

I'm not sure whether the right fix is to explicitly add the server dependency, or to reconfigure things so it's not necessary, but wanted to at least file the workarounds for others who might hit this.

P0 bug

All 5 comments

Oof, thanks @trptcolin! We'll fix asap 馃憤

Published 0.3.11 that should fix this. Leaving this open while we figure out a test story that can test this situation better.

Wow that was quick. Thanks!

Can confirm 0.3.11 fixed my ci! thank you :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

idbartosz picture idbartosz  路  3Comments

JackMidd-Amido picture JackMidd-Amido  路  4Comments

PaulKujawa picture PaulKujawa  路  4Comments

lgummadi7 picture lgummadi7  路  3Comments

mhluska picture mhluska  路  3Comments