Cannot run example specs - Webpack Compilation Error
See original GitHub issueCurrent behavior:
I cannot open any example tests. Each try generates the same error
Error: Webpack Compilation Error
./cypress/integration/examples/aliasing.spec.js
Module build failed (from C:/user_path/Cypress/Cache/5.1.0/Cypress/resources/app/packages/server/node_modules/babel-loader/lib/index.js):
Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.
Desired behavior:
Example tests should be run and working after Cypress installation
Test code to reproduce
- Instll Cypress (
npm install cypress --save-dev
) - Open desktop app (
npx cypress open
) - Pick up one of the existing example tests
Versions
Node 10.22.0 npm 6.14.6 Cypress 5.1.0 Windows 10 Chrome 85.0.4183.83 (Official Build) (64-bit)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:15 (4 by maintainers)
Top Results From Across the Web
How to get more detail than 'Webpack Compilation Error' with ...
You can see your webpack logs by running cypress in debug mode documentation. Mac/Linux DEBUG=cypress:* cypress run. Windows
Read more >cypress-io/cypress - Gitter
Error : Webpack Compilation Error . ... So i have a function that will find a bunch of selectors and run through them...
Read more >Cypress error, can't find "Mocha"? - Horizon
Got an error where the cypress test could not find Mocha? Not sure what this is referencing as there is no Mocha in...
Read more >@cypress/webpack-preprocessor - npm
Cypress preprocessor for bundling JavaScript via webpack. Latest version: 5.16.0, last published: 9 days ago. Start using ...
Read more >9 warnings in child compilations (use 'stats.children: true' resp. '
'--stats-children' for more details) webpack compiled with 2 errors ... ERROR in Error: Child compilation failed: Module not found: Error: Can't resolve ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same here.
Just delete the last two folders i.e. Plugings & supports and see the magic