Skip to content

Webpack Compilation Error #11

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

Open
vijar50 opened this issue Aug 9, 2021 · 5 comments
Open

Webpack Compilation Error #11

vijar50 opened this issue Aug 9, 2021 · 5 comments

Comments

@vijar50
Copy link

vijar50 commented Aug 9, 2021

Hi I am trying to upgrade my Cypress repo to the latest version. 6.6.0 -> 8.2.0
I've upgraded my dependencies and replaced cypress-axe with cypress-axe-core.
However whenever I run my accessibility test I get:
image

I followed the instructions on https://github.com/mcha-dev/cypress-axe-core

This error surfaces once I enable logging in plugins/index.js

@mwmcode
Copy link
Owner

mwmcode commented Aug 9, 2021

May I ask what node version you're running?

@vijar50
Copy link
Author

vijar50 commented Aug 9, 2021

Node v16.3.0
Npm v7.15.1

@vijar50
Copy link
Author

vijar50 commented Aug 9, 2021

It seems that the key difference is updating plugins/index.js to support cypress tasks
Additionally I am using .feature files specified through npm cypress-cucumber-preprocessor

@mwmcode
Copy link
Owner

mwmcode commented Aug 9, 2021

Yes, that's what's happening here.

I'm not familiar with cypress-cucumber but if you can configure it to have a .js extension (i.e. .feature.js) it might solve your problem.

https://github.com/TheBrainFamily/cypress-cucumber-preprocessor#output

@vijar50
Copy link
Author

vijar50 commented Aug 9, 2021

Hi this turned out to be an issue with the usage of cy.task and switching cypress-axe -> cypress-axe-core as well as updating plugins/index.js. Fortunately cypress-axe just pushed v 0.13.0 so I don't have to use cy.task and update the plugins/index.js file. My tests run/pass successfully.

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

2 participants