question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run example specs - Webpack Compilation Error

See original GitHub issue

Current 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:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

15reactions
nelsongustavocommented, Oct 9, 2020
Webpack Compilation Error
./cypress/support/index.js
Module build failed (from /Users/gustavop/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-plugin-transform-class-properties' from '/Users/gustavop/code/sst-digital'
Webpack Compilation Error
./cypress/integration/examples/actions.spec.js
Module build failed (from /Users/gustavop/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-plugin-transform-class-properties' from '/Users/gustavop/code/sst-digital'

Same here.

3reactions
pratikraut840commented, Mar 18, 2022

Just delete the last two folders i.e. Plugings & supports and see the magic

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found