title: Protractor "- Failed: Cannot read property 'ver' of null"
body: <p>I am facing an annoying issue with protractor while trying to launch a test.</p>
  
  <p>Protractor version: 5.1.2</p>
  
  <p>protractor.conf.js</p>
  
  <pre><code>var SpecReporter = require('jasmine-spec-reporter');
  
  exports.config = {
    allScriptsTimeout: 11000,
    specs: [
      './e2e/**/*.e2e-spec.ts'
    ],
    capabilities: {
      'browserName': 'chrome'
    },
    directConnect: true,
    baseUrl: 'http://localhost:8080/src/',
    framework: 'jasmine',
    jasmineNodeOpts: {
      showColors: true,
      defaultTimeoutInterval: 30000,
      print: function() {}
    },
    useAllAngular2AppRoots: true,
    beforeLaunch: function() {
      require('ts-node').register({
        project: 'e2e'
      });
    },
    onPrepare: function() {
      jasmine.getEnv().addReporter(new SpecReporter());
    },  
    rootElement: '*[ng-app]',
  };
  </code></pre>
  
  <p>The end-to-end test file "app.comp.e2e-spec.js"</p>
  
  <pre><code>import { browser, element, by, $ } from 'protractor';
  
  describe('testproject App', function() {
  
    it('should display message saying app works', (done) =&gt; {
      browser.get('/');
      expect($('.my-span').isPresent()).toBe(true);
      return done();
    });
  
  });
  </code></pre>
  
  <p>Each time I launch the test (protractor protractor.conf.js) I run into this error message : </p>
  
  <pre><code>1) testproject App should display message saying app works
  - Failed: Cannot read property 'ver' of null
  
  Executed 1 of 1 spec (1 FAILED) in 0.984 sec.
  [11:27:52] I/launcher - 0 instance(s) of WebDriver still running
  [11:27:52] I/launcher - chrome #01 failed 1 test(s)
  [11:27:52] I/launcher - overall: 1 failed spec(s)
  [11:27:52] E/launcher - Process exited with error code 1
  </code></pre>
  
  <p>I have of course an Angular app running at localhost:8080/index and it's work perfectly when accessing manually with a browser. Would someone have any idea to solve this problem? Thanks in advance</p>