karma icon indicating copy to clipboard operation
karma copied to clipboard

TypeError Cannot read property 'body' of null

Open marc-mabe opened this issue 5 years ago • 2 comments

The bug was introduced most probably in https://github.com/karma-runner/karma/commit/7968db63eb9899961dec19655904502334043735

Expected behaviour

Should work as in v3.1.3

Actual behaviour

Chrome 15.0.874 (Windows 7.0.0) ERROR
  Uncaught TypeError: Cannot read property 'body' of null
  at http://localhost:8080/karma.js:86

Environment Details

  • Karma version (output of karma --version): 4.1.0

I see this error happening on IE9 and Chrome15 running on browserstack. DIdn't tested all of the browsers - so there are probably more browsers broken.

Steps to reproduce the behaviour

  1. Setup mentioned browser
  2. node ./node_modules/karma/bin/karma start --browsers Chrome15

PS: We have to support quite old browsers (IE9+) in our projects and need to have a working testing framework for that.

marc-mabe avatar May 16 '19 15:05 marc-mabe

Any news on this ?

marc-mabe avatar May 28 '19 08:05 marc-mabe

I suggest trying to run the test locally so you can use --noSingleRun then use the browser's debug tools to figure out how the document is getting mutated.

johnjbarton avatar May 28 '19 17:05 johnjbarton