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

gemini cli getting file not defined error

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

vllm : Failed to infer device type