Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Ability to add the project using Yarn #2141

Open
jmosley5 opened this issue Jan 3, 2025 · 2 comments
Open

[Feature]: Ability to add the project using Yarn #2141

jmosley5 opened this issue Jan 3, 2025 · 2 comments
Labels
cypress-accessibility-checker Issues related to the cypress-accessibility-checker module enhancement New feature or request T64 user-reported Issues identified outside of the core team

Comments

@jmosley5
Copy link

jmosley5 commented Jan 3, 2025

Project

cypress-accessibility-checker

Description

Currently, we use yarn to manage our packages. As mixing package managers is a bad practice, I tried to install the cypress-accessibility-checker using yarn. On setup however, I get the following error.

Error: Webpack Compilation Error
Module build failed: UnhandledSchemeError: Reading from "node:url" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
SCR-20250103-lcbx

We are really excited about using this checker as we already use Cypress. But, the error is a blocker for running the tests. If this is an issue instead of a feature request, please let me know what next steps I need to take. Thank you for your time! Excited to see this in the works!

@MHoov MHoov added enhancement New feature or request user-reported Issues identified outside of the core team cypress-accessibility-checker Issues related to the cypress-accessibility-checker module labels Jan 3, 2025
@shunguoy shunguoy added the T64 label Jan 6, 2025
@panpan-lin
Copy link

We use npm but we also started seeing this error after migrating our project from Carbon v10 to Carbon v11. Node version is unchanged (always v20).

@tombrunet
Copy link
Member

It's hard to say without seeing what else is in your achecker.cy.ts file.

I ran our small boilerplate with Node 18, 20, and 22. I used Cypress 13.13.1. The pages I'm scanning aren't particularly complicated, but I do not get any errors. I tried with both npm and yarn, but no difference.

The error says that something is trying to import "node:url". The only references I can find in our dependencies to node:url are in the core @types/node package, and only in declare blocks. Feels like your error is from something else - or webpack is mis-configured?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress-accessibility-checker Issues related to the cypress-accessibility-checker module enhancement New feature or request T64 user-reported Issues identified outside of the core team
Projects
None yet
Development

No branches or pull requests

5 participants