equal-access icon indicating copy to clipboard operation
equal-access copied to clipboard

[Feature]: Ability to add the project using Yarn

Open jmosley5 opened this issue 1 year ago • 2 comments

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!

jmosley5 avatar Jan 03 '25 17:01 jmosley5

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).

panpan-lin avatar Jan 13 '25 11:01 panpan-lin

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?

tombrunet avatar Jan 13 '25 19:01 tombrunet