Questions & Answers

Test case are failing randomly with the message - [karma-server]: TypeError: Cannot read property 'range' of undefined

I am facing issue in running test cases after the node upgrade from node 14 to node 16. Unfortunately I do not have option to downgrade the node version so I have to find alternative way to resolve. I have tried solution mentioned in this post. But none of them are working for me.

Error - while running test cases with node 16 and Angular 9

[karma-server]: TypeError: Cannot read property 'range' of undefined

It was working fine with node 14.* versions.

I am looking for solution where I do not have to downgrade my node version.

Answers(1) :

Any answers??

Can you please tell us what solution you have implemented, since downgrading is not a fix for us also

2023-01-23 07:42:02
guest, please don't add Me too as answers. It doesn't actually provide an answer to the question. If you have a different but related question, then ask it (reference this one if it will help provide context). If you are interested in this specific question, you can upvote it, leave a comment, or start a bounty once you have enough reputation.