Error: Uncaught (in promise): TypeError: Cannot read property ‘push’ of undefined TypeError: Cannot read property ‘push’ of undefined
Cannot read property ‘push’ of undefined? let fareConfigList: FareConfig[]; Solution: Initialize the array with ‘[]’ let fareConfigList: FareConfig[] = [];