-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined Ln -1 Col -1 #169
Comments
hmmm, It would be helpful if you could whittle down your html until you can find something that triggers it; then post the related view-model property for it. |
OK, so I found the issue. So i agree the code isn't the best - and that this logic should have been placed in a function in the VM, and not inline as it's - but still the linter shouldn't fail on this - as linter wise - it's legit as the code works. I do understand why it's complicated to validate - so I suggest that instead of validating this type of code (which is complex and not a good approach generally speaking) - maybe a warning should be written - that it's not recommended and that the linter can't verify this type of code... |
Generally if something isn't supported I'll at least triage it to stop the warnings. What is the view-model property for vg and what is vg type? |
Had the same issue, since the code seem to be failing here: https://github.com/MeirionHughes/aurelia-template-lint/blob/develop/source/rules/binding.ts#L236 ..because of For now, I've monkey patched it by doing |
I'm getting (with a few of my html files):
WARNING: TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined Ln -1 Col -1 /src/analysis/vg-selection.html
And I don't see anything special in the html template itself (e.g of /src/analysis/vg-selection.html) that should error like that:
The text was updated successfully, but these errors were encountered: