-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Unable to find cypress-multi-reporters #24616
Comments
someone already posted. #24607 |
2 tasks
Error loading the reporter: cypress-multi-reporter We searched for the reporter in these paths:
Learn more at https://on.cypress.io/reporters Error: Cannot find module 'D:\Workspace\Cypress\TestCyT\node_modules\cypress-multi-reporter'
I am getting this error with latest cypress version, any solutions |
same |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior
Error loading the reporter: cypress-multi-reporters
this is my
cypress.config.js
look likemodule.exports = defineConfig({
projectId: 'pxk123',
screenshotOnRunFailure: true,
video: false,
chromeWebSecurity: false,
viewportWidth: 1024,
viewportHeight: 768,
reporter: 'cypress-multi-reporters',
reporterOptions: {
configFile: 'reporter-config.js',
}
})
this is my package look like:
"devDependencies": {
"@reportportal/agent-js-cypress": "^5.1.0",
"axe-core": "^4.5.1",
"cypress": "^11.0.0",
"cypress-audit": "^1.1.0",
"cypress-axe-core": "^2.0.0",
"cypress-cucumber-preprocessor": "^4.3.1",
"cypress-multi-reporters": "^1.6.1",
"eslint": "^8.27.0",
"eslint-plugin-cypress": "^2.12.1",
"mocha": "^10.1.0",
"mocha-junit-reporter": "^2.1.1",
"mochawesome": "^7.1.3",
"mochawesome-report-generator": "^6.2.0",
"multiple-cucumber-html-reporter": "^3.0.1",
"request": "^2.88.2",
"jwt-decode": "^3.1.2"
}
Desired behavior
I was using cypress 10.11.0 and it works fine with the cypress-multi-reporter.
After I updated to 11.0.0 the reporter can not be found.
Test code to reproduce
Error loading the reporter: cypress-multi-reporters
We searched for the reporter in these paths:
Learn more at https://on.cypress.io/reporters
Error: Cannot find module 'mocha-7.0.1'
Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:249:1105)
at PackherdModuleLoader._tryResolveFilename (/Users/Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/packherd-require/dist/loader.js:645:32)
at PackherdModuleLoader._resolvePaths (/Users/Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/packherd-require/dist/loader.js:491:31)
at PackherdModuleLoader.tryResolve (/Users/Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/packherd-require/dist/loader.js:313:40)
at resolve (/Users/Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/packherd-require/dist/require.js:125:33)
at require.resolve (/Users/Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/v8-snapshot-require/dist/snapshot-require.js:216:28)
at customRequire.resolve (:2809:961257)
at :2755:13102
at i._load (:2750:54101)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/Users/Documents/AD_QA/swampy-ui-test/node_modules/cypress-multi-reporters/lib/MultiReporters.js:13:15)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1175:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load [as origLoad] (node:electron/js2c/asar_bundle:5:13339)
at PackherdModuleLoader.tryLoad (/Users/Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/packherd-require/dist/loader.js:432:30)
at Module._load (/Users/Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/packherd-require/dist/require.js:87:74)
at i._load (:2750:54140)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/Users/Documents/AD_QA/swampy-ui-test/node_modules/cypress-multi-reporters/index.js:3:24)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1175:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load [as origLoad] (node:electron/js2c/asar_bundle:5:13339)
at PackherdModuleLoader.tryLoad (/Users/Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/packherd-require/dist/loader.js:432:30)
at customRequire (:2809:960157)
at S.loadReporter (:2755:19452)
at P.initializeReporter (:2802:336581)
at P.startWebsockets (:2802:336891)
at P.open (:2802:335033)
at async v.create (:2802:347432)
at async O (:2802:421364)
at async W (:2802:432780)
Cypress Version
11.0.0
Node version
v18.4.0
Operating System
macOS 12.6
Debug Logs
Other
N/A
The text was updated successfully, but these errors were encountered: