Typescript array and getting error property 'push' of undefined



If you ever bump into this error, well it just you forgot something really basic and the solution is pretty straight forward too.

In case, you're wondering why, it is because you didn't initialize it well 'enough' :)




Comments

Popular posts from this blog

Windows SSH: Permissions for 'private-key' are too open

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20