-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
instanceof checks are failing after updating to the latest version #3676
Comments
This does have a smell of #2824
CC @sheremet-va |
And why does it use different dependencies there? 🤷🏻 Maybe deleting/reinstalling helps? Or lockfile is wrong? |
Hello @gajus. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Where do you see different dependencies? As far as I can tell, they are all the same version. |
I don't see how to repro this in StackBlitz. |
You don't have to use stackblitz |
The last working version is v0.31.1. It breaks in v0.31.2. Tagging contributors to v0.31.2 @ghiscoding @PCreations @jcbhmr @fenghan34 @gtm-nayan @ghry5 @dammy001 @Dunqing @fooddilsn @rxliuli @btea @rluvaton @sheremet-va @AriPerkkio Trying to look at what changed in the code between those versions. |
It is definitely vitest related change. I removed all other changes from our PR and isolated just to dependency update, and it breaks all |
Please, provide reproduction. |
Pretty sure it is going to be this PR #3446 That's a breaking change |
Indeed it was. Undoing these configs fixes the issue. |
Please, provide a reproduction. |
I am not going to provide a reproduction, but please add a note to the release log that this is a breaking change. |
Just for added context, this is a breaking change in monorepos where your directory structure is something like:
|
Describe the bug
After updating to the latest version, our
instanceof
checks started to fail, e.g.While previously this was working, now it is failing with:
From the error it seems like they both share the same constructor.
However, checking the referenced object indeed confirms that the property is not an instance of
PaidProjectTerms
.Reproduction
I am unclear as to how to debug this further or how to reproduce it in isolation.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: