2017-10-27 4 views
-1

ng 서버를 다시 시작한 후 템플릿을 약간 변경하고있었습니다. 콘솔에서 오류가 발생하기 시작했습니다. 나는 작업 코드를 되돌 렸지만 여전히 같은 오류를 던지고있다. 템플릿 파일을 가리키고 있지 않기 때문에이 오류를 디버그하는 것이 매우 어렵습니다. 각도 cli를 사용하고 있습니다.ERROR TypeError : null의 'map'속성을 읽을 수 없습니다.

Error1 :

ERROR TypeError: Cannot read property 'map' of null at splitDepsDsl (core.es5.js:8712) at _def (core.es5.js:10695) at directiveDef (core.es5.js:10652) at View_AppComponent_Host_0 (AppComponent_Host.html:1) at proxyClass (compiler.es5.js:14971) at resolveDefinition (core.es5.js:8756) at ComponentFactory_.webpackJsonp.../../../core/@angular/core.es5.js.ComponentFactory_.create (core.es5.js:9859) at ComponentFactoryBoundToModule.webpackJsonp.../../../core/@angular/core.es5.js.ComponentFactoryBoundToModule.create (core.es5.js:3333) at ApplicationRef_.webpackJsonp.../../../core/@angular/core.es5.js.ApplicationRef_.bootstrap (core.es5.js:4768) at core.es5.js:4546

오류 2 :

zone.js:661 Unhandled Promise rejection: Cannot read property 'map' of null ; Zone: ; Task: Promise.then ; Value: TypeError: Cannot read property 'map' of null at splitDepsDsl (core.es5.js:8712) at _def (core.es5.js:10695) at directiveDef (core.es5.js:10652) at View_AppComponent_Host_0 (AppComponent_Host.html:1) at proxyClass (compiler.es5.js:14971) at resolveDefinition (core.es5.js:8756) at ComponentFactory_.webpackJsonp.../../../core/@angular/core.es5.js.ComponentFactory_.create (core.es5.js:9859) at ComponentFactoryBoundToModule.webpackJsonp.../../../core/@angular/core.es5.js.ComponentFactoryBoundToModule.create (core.es5.js:3333) at ApplicationRef_.webpackJsonp.../../../core/@angular/core.es5.js.ApplicationRef_.bootstrap (core.es5.js:4768) at core.es5.js:4546 TypeError: Cannot read property 'map' of null at splitDepsDsl (http://localhost:4200/vendor.bundle.js:100930:17) at _def (http://localhost:4200/vendor.bundle.js:102913:36) at directiveDef (http://localhost:4200/vendor.bundle.js:102870:12) at View_AppComponent_Host_0 (ng:///AppModule/AppComponent_Host.ngfactory.js:6:67) at proxyClass (http://localhost:4200/vendor.bundle.js:79342:29) at resolveDefinition (http://localhost:4200/vendor.bundle.js:100974:17) at ComponentFactory_.webpackJsonp.../../../core/@angular/core.es5.js.ComponentFactory_.create (http://localhost:4200/vendor.bundle.js:102077:40) at ComponentFactoryBoundToModule.webpackJsonp.../../../core/@angular/core.es5.js.ComponentFactoryBoundToModule.create (http://localhost:4200/vendor.bundle.js:95551:29) at ApplicationRef_.webpackJsonp.../../../core/@angular/core.es5.js.ApplicationRef_.bootstrap (http://localhost:4200/vendor.bundle.js:96986:57) at http://localhost:4200/vendor.bundle.js:96764:81

답변

0

오류가 각도에 패키지를 깨진 예정이었다 콘솔에 표시이 오류가 있습니다. 문제를 해결 한 yarn upgrade 명령을 실행했습니다.

+0

실 업그레이드를 시도했지만 나에게 도움이되지 못했습니다. –

관련 문제