मैं सीख रहा हूं कि अंगुलर 2 के साथ कर्म कैसे स्थापित करें और मुद्दों पर चलें।कोणीय 2, कर्म और फैंटॉमजेएस
मैंने जूली ने seed project में क्या किया और इसे मेरे प्रोजेक्ट पर लागू किया।
सभी क्रोम में अच्छी तरह से काम करते हैं, लेकिन जब मैं फैंटॉमजेएस का उपयोग करना चाहता हूं तो मुझे एक त्रुटि मिलती है। यह भी PhantomJS2 में होता है ...
यह त्रुटि है:
[karma]: Karma v0.13.22 server started at http://localhost:9877/
[launcher]: Starting browser PhantomJS2
[PhantomJS 2.0.0 (Mac OS X 0.0.0)]: Connected on socket /#1yDrSei5NUX4_WYaAAAA with id 93476222
Missing error handler on `socket`.
TypeError: (msg || "").replace is not a function
at node_modules/karma/lib/reporter.js:45:23
karma.config.js
module.exports = function (config) {
config.set({
basePath : '',
frameworks : ['jasmine'],
files : [
// paths loaded by Karma
{pattern : 'node_modules/systemjs/dist/system-polyfills.js', included : true, watched : true},
{pattern : 'node_modules/systemjs/dist/system.src.js', included : true, watched : true},
{pattern : 'node_modules/es6-shim/es6-shim.js', included : true, watched : true},
{pattern : 'node_modules/angular2/bundles/angular2-polyfills.js', included : true, watched : true},
{pattern : 'node_modules/rxjs/bundles/Rx.js', included : true, watched : true},
{pattern : 'node_modules/angular2/bundles/angular2.js', included : true, watched : true},
{pattern : 'node_modules/angular2/bundles/testing.dev.js', included : true, watched : true},
{pattern : 'karma-test-shim.js', included : true, watched : true},
{pattern : 'app/**/*.js', included : false, watched : true},
{pattern : 'app/**/*.html', included : false, watched : true},
{pattern : 'app/**/*.css', included : false, watched : true},
{pattern : 'test/**/*.ts', included : false, watched : false},
{pattern : 'test/**/*.js', included : false, watched : true},
{pattern : 'test/**/*.js.map', included : false, watched : false}
],
proxies : {
"/app/" : "/base/src/app/"
},
reporters : ['progress'],
port : 9876,
colors : true,
logLevel : config.LOG_INFO,
autoWatch : false,
browsers : ['PhantomJS2'],
singleRun : true
})}
किसी को भी पता है कि मैं गलत क्या कर रहा हूँ? अग्रिम
है क्या यह मदद करता है? http://stackoverflow.com/a/36133360/771848 – alecxe
धन्यवाद alecxe लेकिन मेरा आरएक्स उचित मामला आरएक्स है और मैंने शिम में आयात को बदलने की कोशिश की। – Thibs
https://github.com/karma-runner/karma/issues/1969 –