broken after @percy/cli v1.0.1 upgrade
See original GitHub issueafter 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:
- Created a year ago
- Reactions:3
- Comments:20 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Robdel12 I can confirm this fixed the issue for me, thank you for the quick turnaround! 🙏
Same here! Thanks again!