-
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
Cypress Object.statSync Error (Cannot read properties of undefined (reading 'uid')) #19674
Comments
I'm having the same issue with a clean installation:
Node v16.13.0 |
I could workaround the error above by adding the below to package.json "scripts": {
"preinstall": "npx npm-force-resolutions",
},
"resolutions": {
"graceful-fs": "4.2.9"
} BUT now, I'm getting a different error.
Deps: |
I have this error too. It seems that for my case this error appeared after vite update. Don't know why Cypress at the end of error trace. os: windows
|
found an issue isaacs/node-graceful-fs#220 |
Hi, We have resolved the issue on our side. There were conflicts with Typescript, cypress-cucumber-preprocessor & Cypress Tags. const cucumber = require("cypress-cucumber-preprocessor").default; module.exports = (on, config) => {
}; "@cypress/browserify-preprocessor": "^3.0.2", Aidan |
I have same issue while using cypress along with cucumber bdd. Please find my package.json file. ============================================================================ { } |
Same, producing after an update from a v7 to v9.2.1. TypeError: Cannot read properties of undefined (reading 'uid') |
Doc in the cucumber repo changed. Changing my former code with the documented one solved it for me. https://github.com/TheBrainFamily/cypress-cucumber-preprocessor#with-out-of-the-box-support Hope it helps. |
Any work-around for vue + vite, yet? Should this really be closed, just because there is a work-around? |
@mdrie I didn't test new release, but seems that 9.3.0 fixes this https://docs.cypress.io/guides/references/changelog#9-3-0 |
@edikdeisling thanks, but no, that didn't help. I might have another problem. Might there be another problem with vue and/or vite? |
@mdrie If you have |
Seems I have another problem.
Should I open a new issue? |
Seems that you have issue in your code... Try to inverstigate why your store gives you undefined. |
Yes! Thank you. It was something completely different, but in the end - my problem. Thanks for the help! |
Current behavior
Today
Notes:
TypeError: Cannot read properties of undefined (reading 'uid') at Object.statSync (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\node_modules\graceful-fs\polyfills.js:303:17) at isDirectory (C:\Users\User\Documents\ADO\Nebula\Policy\tests\CypressTests\node_modules\resolve\lib\sync.js:22:23) at loadNodeModulesSync (C:\Users\User\Documents\ADO\Nebula\Policy\tests\CypressTests\node_modules\resolve\lib\sync.js:191:17) at Function.resolveSync [as sync] (C:\Users\User\Documents\ADO\Nebula\Policy\tests\CypressTests\node_modules\resolve\lib\sync.js:98:17) at Object.handler (C:\Users\User\Documents\ADO\Nebula\Policy\tests\CypressTests\cypress\plugins\index.js:13:27) at invoke (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\lib\plugins\child\run_plugins.js:22:16) at C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\lib\plugins\util.js:45:14 at tryCatcher (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\util.js:16:23) at Function.Promise.attempt.Promise.try (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\method.js:39:29) at Object.wrapChildPromise (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\lib\plugins\util.js:44:23) at Object.wrap (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\lib\plugins\child\preprocessor.js:28:8) at execute (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\lib\plugins\child\run_plugins.js:119:27) at EventEmitter.<anonymous> (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\lib\plugins\child\run_plugins.js:202:5) at EventEmitter.emit (events.js:376:20) at process.<anonymous> (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\lib\plugins\util.js:19:22) at process.emit (events.js:376:20) at process.emit (C:\Users\User\AppData\Local\Cypress\Cache\8.7.0\Cypress\resources\app\packages\server\node_modules\source-map-support\source-map-support.js:495:21) at emit (internal/child_process.js:910:12) at processTicksAndRejections (internal/process/task_queues.js:83:21)
Desired behavior
This obviously should not be happening
Test code to reproduce
Steps to reproduce described already
Cypress Version
8.7.0
Other
I see this issue with 8.7.0 & also 9.2.1
The text was updated successfully, but these errors were encountered: