Error when configuring Component testing with cypress major release 10.3.1 #22891
Unanswered
alineborak
asked this question in
Component Testing
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add the config for Cypress Component test, which came with the release of cypress 10.
When I run the test script
npx cypress open
And click to open the component test,
I get the error msg regarding this browserslist:
../../../node_modules/webpack/lib/config/target.js:93:11
Error image screenshot:

My config file is correct, since when I run e2e tests it runs just fine.
I already tried using several node versions (14, 16, 17, 18) and that didn't help either.
I don't have any test yet for component, I'm simply trying to add the config.
Although I've found this somewhat similar issue related to browserslist: cypress-io/cypress#2983
-The solutions there don't work for me, since one of the workaround is using Browserify Preprocessor which is a deprecated plugin.
Beta Was this translation helpful? Give feedback.
All reactions