-
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
Component testing with Vite is failing due to the outdated bundled graceful-fs
version
#19610
Comments
graceful-js
versiongraceful-fs
version
Confirmed that it doesn't work. Thanks for the reproducible example. |
A better solution than just updating the bundled version is to not bundle dependencies at all :-) |
Using Cypress 8.7.0 in Angular 12.2.0 application & I have been facing the similar issue since last 3 days. Please let me know in case any fix exist for the issue. I think it is due to incompatibility caused by upgradation of internal packages i.e. of Attaching the detail log of the issue, ` We invoked the function exported by C:\\\e2e\cypress\plugins\index.js, but it threw an error. TypeError: Cannot read properties of undefined (reading 'uid') |
Any update on this issue? This is breaking even the older version of cypress possibly due to buggy dependency. In the long term, it might help to remove this dependency as the author suggest |
You may force the transitive dependency of resolve to version 1.20.0 in your package.json.
|
That’s not a helpful suggestion. You can use next@12.0.8-canary, 19 or higher, and it should be fixed. |
Since this the dependencies are bundled up with cypress app, the overrides in local @ljharb I am using svelte. In any case it does not matter because of the above reason. |
@bhvngt ah, and does svelte bundle graceful-fs also? If so, can you link me to the issue filed on it? (or does svelte depend on cypress which bundles it, and that’s the problem) |
@ljharb the issue has nothing to do with svelte. In my case it is getting thrown from the Cypress app bundle. Cypress app bundles graceful-fs from where this error is thrown. Here's the error snippet that shows the source of the error.
|
then in that case, i hope cypress fixes it soon. |
Any update on this? Happening for me as well using cypress w/ react. The only workaround I've found is using an old version of node specifically v12.22.1 for me. Hope that helps you all in the meantime. |
Code digging suggests that graceful-fs package installed under server throws this error. It needs to be upgraded from |
Is there something i can do for now? someone found a work around until it's fixed? |
PR to update graceful-fs version: #19676 |
The code for this is done, but has yet to be released. We'll update this issue and reference the changelog when it's released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
Component testing with Vite in new projects doesn't work.
There will be errors like:
The direct cause is the latest version of
resolve
. It exposes a bug in older versions ofgraceful-fs
.Because Cypress bundles
graceful-fs
by itself, there seems no way for users to fix it by themselves.More technical details is explained at browserify/resolve#264 (comment)
Desired behavior
Update the bundled
graceful-fs
version to >= 4.2.9Test code to reproduce
https://github.com/robyedlin/vue3-starter
Cypress Version
9.2.0
Other
No response
The text was updated successfully, but these errors were encountered: