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

Dependencies cannot be statically extracted - error when using with Cypress component testing #122

Open
Phonesis opened this issue Feb 24, 2022 · 0 comments

Comments

@Phonesis
Copy link

I am trying to use this lib with the cypress/react lib for component testing.

When I import this lib to the Cypress/support/index.js I get the following error and components I attempt to mount fail to render with:

 fix Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

As soon as I remove the import (import 'cypress-axe') it goes away.

Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant