1👍
Generally this kind of error happens when you try to access a property of an object that does not (yet) exist.
So I think somewhere in your code you try to access someObject.spaces but someObject is undefined. To avoid this, you can add a simple if-clause before your operation:
if(someObject){
doSomething(someObject.spaces)
}
I think you’ll have to fill in more code to identify exactly what happens, though.
- [Vuejs]-How to add / remove rows in array in hybrid Vue project?
- [Vuejs]-Get Incorrect test coverage during Vue.js unit test
Source:stackexchange.com