angular2-testing icon indicating copy to clipboard operation
angular2-testing copied to clipboard

Karma-client Chrome could not be started

Open HNeukermans opened this issue 8 years ago • 2 comments

I got an error: Error: XHR error (404 Not Found) loading http://localhost:9876/angular2/src/core/dom/browser_adapter.

The solution was to change karma-test-shim.js line 31 *from * System.import('angular2/src/core/dom/browser_adapter') *to * System.import('angular2/src/platform/browser/browser_adapter')

HNeukermans avatar Mar 16 '16 10:03 HNeukermans

Hello I have the same issue but the path is correct. I don't really understand where I can ensure the localhost:9876 is well serving the angular2 browser_adapter... Any idea?

Bennoo avatar Apr 18 '16 16:04 Bennoo

If you have problems with your paths you can config them on System.config:

System.config({
    paths: {
        'angular2/*': 'node_modules/angular2/*'
    },
    format: 'register',
    defaultJSExtensions: true
});

Elecash avatar Apr 23 '16 11:04 Elecash