I have a build issue while running a unit test case in angular 9. environment Angular CLI: 9.1.12 Node: 15.1.0 OS: win32 x64 error:
Asked
Active
Viewed 1,041 times
2 Answers
2
Same error was coming for me too. I commented the if else block in nodemoodules/webpack-dev-middleware/lib/util.js 130. It is because it has undefined value. Now it is working fine. I am beginner, I don't know about the impact else where.

Suryaprakash
- 80
- 1
- 11
0
It's an issue with karma on node v15, you'll have to downgrade to 14.
Issue at Karma: https://github.com/karma-runner/karma/issues/3571

Joran
- 211
- 2
- 5