최근에 이오니아 2 알파 버전에서 최신 이오니아 2 베타 10으로 앱을 업그레이드했습니다. 코드가 깨지거나 오류가 발생하는 경우가 있습니다. 자바 스크립트 콘솔에서 가져 오기. 모든 TypeScript는이 하나의 app.bundle.js 파일에 번들로 제공되어 오류를 식별 할 때 콘솔이 코드의 잘못된 영역을 가리 키도록합니다. 이상적으로는 콘솔 출력에서 오류를 일으키는 실제 파일을 볼 수 있습니다.이오닉 2 - 어떻게 app.bundle.js 오류를 이해합니까?
나는 이것을 어떻게 달성 할 수 있는지 아는 사람 있습니까?
감사합니다.
browser_adapter.js:77EXCEPTION: Error: Uncaught (in promise): EXCEPTION: Error in :0:0
ORIGINAL EXCEPTION: No provider for ConfigService! (ESOService -> ConfigService)
ORIGINAL STACKTRACE:
Error: DI Exception
at NoProviderError.BaseException [as constructor] (http://localhost:8100/build/js/app.bundle.js:2805:23)
at NoProviderError.AbstractProviderError [as constructor] (http://localhost:8100/build/js/app.bundle.js:27996:16)
at new NoProviderError (http://localhost:8100/build/js/app.bundle.js:28033:16)
at ReflectiveInjector_._throwOrNull (http://localhost:8100/build/js/app.bundle.js:29021:19)
at ReflectiveInjector_._getByKeyDefault (http://localhost:8100/build/js/app.bundle.js:29049:25)
at ReflectiveInjector_._getByKey (http://localhost:8100/build/js/app.bundle.js:29012:25)
at ReflectiveInjector_._getByReflectiveDependency (http://localhost:8100/build/js/app.bundle.js:29002:21)
at ReflectiveInjector_._instantiate (http://localhost:8100/build/js/app.bundle.js:28899:36)
at ReflectiveInjector_._instantiateProvider (http://localhost:8100/build/js/app.bundle.js:28871:25)
at ReflectiveInjector_._new (http://localhost:8100/build/js/app.bundle.js:28860:21)
ERROR CONTEXT:
[object Object]
메시지 'No ConfigService! (ESOService -> ConfigService)'는 매우 간단합니다. 어떤 구성 요소의 공급자 배열에도 추가하지 않고'ConfigService'를 사용하고 있습니다. 여러분이 그것을 어디에서 사용하는지 살펴보고, 반드시 사용해야하는 최상위 구성 요소의'providers' 배열에 추가하십시오. – sebaferreras