Tôi đang cố gắng kiểm tra trình phân giải tuyến đường của mình và trong khi thử nghiệm, tôi nhận được TypeError: ctor is not a constructor
và không biết tại sao nó xảy ra trong khi thời gian biên dịch không có lỗi.lỗi thử nghiệm đơn vị 4 góc 'TypeError: ctor không phải là hàm tạo `
TypeError: ctor is not a constructor
TypeError: ctor is not a constructor
at _createClass (http://localhost:9877/_karma_webpack_/vendor.bundle.js:42355:26)
at _createProviderInstance$1 (http://localhost:9877/_karma_webpack_/vendor.bundle.js:42330:26)
at resolveNgModuleDep (http://localhost:9877/_karma_webpack_/vendor.bundle.js:42315:17)
at _createClass (http://localhost:9877/_karma_webpack_/vendor.bundle.js:42362:26)
at _createProviderInstance$1 (http://localhost:9877/_karma_webpack_/vendor.bundle.js:42330:26)
at resolveNgModuleDep (http://localhost:9877/_karma_webpack_/vendor.bundle.js:42315:17)
at NgModuleRef_.webpackJsonp../node_modules/@angular/core/@angular/core.es5.js.NgModuleRef_.get (http://localhost:9877/_karma_webpack_/vendor.bundle.js:43401:16)
at TestBed.webpackJsonp../node_modules/@angular/core/@angular/core/testing.es5.js.TestBed.get (http://localhost:9877/_karma_webpack_/vendor.bundle.js:48412:47)
at http://localhost:9877/_karma_webpack_/vendor.bundle.js:48418:61
at Array.map (native)
bạn đang sử dụng ng2 bootstrap –
có. nhưng tôi đang thử nghiệm trình phân giải tuyến đường. đó có ảnh hưởng đến trình phân giải tuyến đường của tôi ngay cả khi không có html hoặc css –