I'm very new with cypress. A few days ago I started cypress component testing (@vue/cli-service).
the command I used is: "npx cypress open-ct"
But the following
error was returned (the error disappear by run the command again). Does anyone know why?
--------------------------------
...
webpack 5.72.1 compiled successfully in 1660 ms
***Error: SocketCt#startListening must first be called before accessing 'this.io*'**
at SocketCt.ensureProp (C:\Users\wli\AppData\Local\Cypress\Cache\9.6.1\Cypress\resources\app\packages\server\lib\util\class-helpers.js:14:15)
at SocketCt.get io [as io] (C:\Users\wli\AppData\Local\Cypress\Cache\9.6.1\Cypress\resources\app\packages\server\lib\socket-base.js:56:21)
at SocketCt.toRunner (C:\Users\wli\AppData\Local\Cypress\Cache\9.6.1\Cypress\resources\app\packages\server\lib\socket-base.js:62:21)
at EventEmitter.
(C:\Users\wli\AppData\Local\Cypress\Cache\9.6.1\Cypress\resources\app\packages\server\lib\socket-ct.js:18:22)
at EventEmitter.emit (node:events:394:28)
at EventEmitter.
(C:\Users\wli\AppData\Local\Cypress\Cache\9.6.1\Cypress\resources\app\packages\server\lib\plugins\dev-server.js:20:17)
at EventEmitter.emit (node:events:394:28)
at ChildProcess.
(C:\Users\wli\AppData\Local\Cypress\Cache\9.6.1\Cypress\resources\app\packages\server\lib\plugins\util.js:19:22)
at ChildProcess.emit (node:events:394:28)
at emit (node:internal/child_process:920:12)
at processTicksAndRejections (node:internal/process/task_queues:84:21)