-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
RangeError: Maximum call stack size exceeded using vuelidate 0.7.x typings package #12750
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
I have the same problem with 2.7.10. |
Created a repro here: https://github.com/AlbinoDrought/vue-12750-repro Here's the failing |
I've got a workaround for this issue that should unblock folks. I took a look at the I think the key is the change to the By applying this patch (e.g., via diff --git a/node_modules/@types/vuelidate/vue.d.ts b/node_modules/@types/vuelidate/vue.d.ts
index 64e61c2..0fdeebc 100755
--- a/node_modules/@types/vuelidate/vue.d.ts
+++ b/node_modules/@types/vuelidate/vue.d.ts
@@ -6,7 +6,7 @@ import { Validation } from './vuelidate'
declare module 'vue/types/vue' {
type ValidationProperties<V> = {
- [P in Exclude<keyof V, '$v'>]?: Validation & ValidationProperties<V[P]> & ValidationEvaluation
+ [P in Exclude<keyof V, '$v' | '$parent' | '$root' | '$children'>]?: Validation & ValidationProperties<V[P]> & ValidationEvaluation
}
interface ValidationGroups { I used @AlbinoDrought's example repo to prove that this now builds: https://github.com/blimmer/vue-12750-repro/actions/runs/3268574902/jobs/5375141277 AlbinoDrought/vue-12750-repro#1 I haven't spent too much time figuring out exactly why this works, but it kind of makes sense since I don't currently have the bandwidth to open a PR to fix this in |
I nearly wanted to quit my job as a software developer because I couldn't make the vue version upgrade 2.6.x -> 2.7.13 work until I found your comment, which solved the issue for me. You are my hero! Before I have seen your fix I tried several things like increasing the maximum depths for typescript "instantiateTypes" and adding some logging, but this didn't help at all to find a fix. |
I've seen a different solution suggested here and have referred to this solution as an alternative. I'm not sure which is the better solution, so I'd be grateful for some input as I'm experiencing this issue and would like to see a permanent solution. |
closing as this has been fixed in vuelidate types. |
Version
2.7.8
Reproduction link
github.com
Steps to reproduce
npm install
npm run eslint
What is expected?
eslint terminates normally
What is actually happening?
RangeError: Maximum call stack size exceeded occurs:
The repo works when downgrading to vue 2.7.5. Vue 2.7.6 to 2.7.8 show this problem. I suspect it's a vue issue related to the typing information as I found similar problems in bug tracker for the latest versions. Just uninstalling the vuelidate typings package solves the problem. So it might be some type of typing conflict with vuelidate.
The text was updated successfully, but these errors were encountered: