-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
HMR throw Maximum call stack size exceeded
Plugin: vite:vue at deepEqual @vitejs/plugin-vue/dist/index.mjs:2267:19
#325
Labels
Comments
same here |
Same here |
same here |
1 similar comment
same here |
Hello, same here |
Here's a temp fixture function equal(a, b, excludeProps = []) {
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
if (a.constructor !== b.constructor) return false;
var length, i, keys;
if (Array.isArray(a)) {
length = a.length;
if (length != b.length) return false;
for (i = length; i-- !== 0;)
if (!equal(a[i], b[i]), excludeProps) return false;
return true;
}
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
keys = Object.keys(a).filter(key => !excludeProps.includes(key));
length = keys.length;
if (length !== Object.keys(b).length) return false;
for (i = length; i-- !== 0;)
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
for (i = length; i-- !== 0;) {
var key = keys[i];
if (!equal(a[key], b[key]), excludeProps) return false;
}
return true;
}
// true if both NaN, false otherwise
return a!==a && b!==b;
}
|
NateScarlet
added a commit
to NateScarlet/vite-plugin-vue
that referenced
this issue
Jan 8, 2024
NateScarlet
added a commit
to NateScarlet/vite-plugin-vue
that referenced
this issue
Jan 8, 2024
9 tasks
NateScarlet
added a commit
to NateScarlet/vite-plugin-vue
that referenced
this issue
Jan 8, 2024
haoqunjiang
pushed a commit
that referenced
this issue
Jan 9, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Related plugins
Describe the bug
vite-plugin-vue/packages/plugin-vue/src/handleHotUpdate.ts
Line 231 in 90eb484
Reproduction
https://github.com/n0099/open-tbm/blob/5ed1f50f5a93a69ccf9208c0d029e4ecd85102ab/fe
Steps to reproduce
$ yarn dev
*.vue
file twice which the first update won't trigger thisThis just happened after upgrade to
vue@3.4.0
and@vitejs/plugin-vue@5.0.1
, also tried update to the latestvue@3.4.3
with@vitejs/plugin-vue@5.0.2
but it still sticking with this infinite recursion.System Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: