TypeScript: Cannot read property ‘push’ of undefined in [null] May 19, 2023 by Tarik The array needs to be initialized: stringArr = [];