You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was not able to make it work. This is the log when it fails:
% yarn test:percy
$ percy exec -- pnpm run story:build
[percy] Successfully downloaded Chromium 929475
[percy] Percy has started!
[percy] Running "pnpm run story:build"
> @ story:build /..../nuxt-histoire
> histoire build
ℹ Using Tailwind CSS from ~/assets/scss/main.scss
ℹ Vite client warmed up in 1693ms
✔ Nitro built in 1426 ms
/........../node_modules/@histoire/plugin-percy/dist/index.js:20
const browser = await puppeteer.launch();
^
TypeError: Cannot read properties of undefined (reading 'launch')
at Object.onBuild (/........../node_modules/@histoire/plugin-percy/dist/index.js:20:39)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async build (file:///........../node_modules/histoire/dist/node/build.js:43:13)
at async buildCommand (file:///........../node_modules/histoire/dist/node/commands/build.js:7:5)
ERROR Command failed with exit code 1.
[percy] Finalized build #1: https://percy.io/7ae011fa/nuxt-histoire/builds/22228121
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Describe the bug
I was trying histoire with Nuxt 3 and Nuxt Tailwind, and I wanted to add Percy for visual regression. I followed the guide as described here https://github.com/histoire-dev/histoire/tree/main/packages/histoire-plugin-percy.
I was not able to make it work. This is the log when it fails:
Reproduction
If you want to try I made a repository: https://github.com/Archetipo95/nuxt-histoire
Just add your percy token (as described here) and run the command
yarn percy:test
.System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: