question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

broken after @percy/cli v1.0.1 upgrade

See original GitHub issue

after upgrading to the latest version of @percy/cli I’m running into this error:

$ yarn percy storybook ./storybook-static --verbose
yarn run v1.22.10
$ /path/to/node_modules/.bin/percy storybook ./storybook-static --verbose
[percy] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/path/to/node_modules/@percy/storybook/dist/hooks/init' imported from /path/to/node_modules/@percy/cli/dist/commands.js
Did you mean to import /path/to/node_modules/@percy/storybook/dist/hooks/init.js?
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I’m unsure if I should report this here or in https://github.com/percy/cli but if I uninstall @percy/storybook the cli seems to work correctly:

$ yarn percy --help
yarn run v1.22.10
Usage:
  $ percy <command>

Commands:
  exec [options] -- <command>                   Start and stop Percy around a supplied command
  exec:start [options]                          Starts a local Percy snapshot server
  exec:stop [options]                           Stops a local running Percy snapshot server
  exec:ping [options]                           Pings a local running Percy snapshot server
  snapshot [options] <dir|file|sitemap>         Snapshot a static directory, snapshots file, or sitemap URL
  upload [options] <dirname>                    Upload a directory of images to Percy
  build:finalize [options]                      Finalize parallel Percy builds
  build:wait [options]                          Wait for a build to be finished
  config:create [options] [filepath]            Create a Percy config file
  config:validate [options] [filepath]          Validate a Percy config file
  config:migrate [options] [filepath] [output]  Migrate a Percy config file to the latest version
  help [command]                                Display command help

Global options:
  -v, --verbose                                 Log everything
  -q, --quiet                                   Log errors only
  -s, --silent                                  Log nothing
  -h, --help                                    Display command help
  -V, --version                                 Display version

✨  Done in 0.70s.

but after installing @percy/storybook I get the same error:

$ yarn percy --help
yarn run v1.22.10
$ /path/to/node_modules/.bin/percy --help
[percy] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/path/to/node_modules/@percy/storybook/dist/hooks/init' imported from /path/to/node_modules/@percy/cli/dist/commands.js
Did you mean to import /path/to/node_modules/@percy/storybook/dist/hooks/init.js?
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
okizecommented, Apr 6, 2022

@Robdel12 I can confirm this fixed the issue for me, thank you for the quick turnaround! 🙏

2reactions
benmvpcommented, Apr 12, 2022

@Robdel12 I can confirm this fixed the issue for me, thank you for the quick turnaround! 🙏

Same here! Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases · percy/percy-testcafe - GitHub
Breaking Changes ... See the readme for updated install and usage instructions. Upgrading from v1. If you're upgrading from v1, make sure you ......
Read more >
Migrating to Percy CLI
This is due to @percy/agent being a direct dependency on current JS SDKs. Non-JS SDKs have a slightly different upgrade path since @percy/agent...
Read more >
gatsby-plugin-percy - npm Package Health Analysis - Snyk
A Gatsby plugin for automatically taking Percy snapshots after a build. ... packages in your projects for vulnerabilities and provides automated fix advice....
Read more >
@percy/cli-command: Versions | Openbase
Bug Fixes. Fix multi-dom capture when using the snapshot command by @wwilsman in https://github.com/percy/cli/pull/1097. ⬆️⬇️ Dependency Updates.
Read more >
package.json - rouch/Cypress - NotABug.org
Cypress - Fast, easy and reliable testing for anything that runs in a browser.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found