The problem is with your karma.conf.js
In my case my karma.conf.js had the dir as: dir: require('path').join(__dirname, '../coverage'),
If yours is just like mine all you need to do is to change from dir: require('path').join(__dirname, '../coverage'),
to dir: require('path').join(__dirname, './coverage'),
removing one of the two dots there are since the base href is already ./
3 Likes