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
What does not work?
You cannot use the @cypress-audit/pa11y when using PNPM (https://pnpm.io/) as a package manager.
How to reproduce?
Any project relying using pnpm to install and run using this plugin will not work, due to missing puppeteer dependency.
Your pluginsFile is invalid: <mypath>\cypress\plugins\index.js
It threw an error when required, check the stack trace below:
Error: Cannot find module 'puppeteer'
Require stack:
- <mypath>\node_modules\.pnpm\@[email protected]\node_modules\@cypress-audit\pa11y\src\task.js
- <mypath>\node_modules\.pnpm\@[email protected]\node_modules\@cypress-audit\pa11y\index.js
...
Expected behavior
It should work!
Environment (please complete the following information):
OS: Windows/Linux - but will effect any OS
Chrome version: -
Cypress version: 9.5
Any other information that may help fixing the issue?
What does not work?
You cannot use the
@cypress-audit/pa11y
when using PNPM (https://pnpm.io/) as a package manager.How to reproduce?
Any project relying using pnpm to install and run using this plugin will not work, due to missing puppeteer dependency.
Expected behavior
It should work!
Environment (please complete the following information):
Any other information that may help fixing the issue?
It should be a simple fix, its just that PNPM is very strict about making sure that any dependencies used in a project are declared in the
package.json
of that project. I can seepuppeteer
is required in the https://github.com/mfrachet/cypress-audit/blob/master/packages/pa11y/src/task.jsAll you need to do is add it do your dependencies in your package.json for pa11y - https://github.com/mfrachet/cypress-audit/blob/master/packages/pa11y/package.json
Thanks!
The text was updated successfully, but these errors were encountered: