2017-10-27 2 views
0

이 오류를 이해할 수 없습니다. /adminsection에 대한 라우터가있는 링크를 클릭 할 때만 발생합니다. 이것은 잘 작동했지만 지금은 작동하지 않습니다.오류 e 오류에 대한 공급자가 없음

vendor.5593a633d149efa93b2d.bundle.js:1 ERROR Error: Uncaught (in promise): Error: No provider for e! Error: No provider for e! at E (vendor.5593a633d149efa93b2d.bundle.js:1) at O (vendor.5593a633d149efa93b2d.bundle.js:1) at t._throwOrNull (vendor.5593a633d149efa93b2d.bundle.js:1) at t._getByKeyDefault (vendor.5593a633d149efa93b2d.bundle.js:1) at t._getByKey (vendor.5593a633d149efa93b2d.bundle.js:1) at t.get (vendor.5593a633d149efa93b2d.bundle.js:1) at Be (vendor.5593a633d149efa93b2d.bundle.js:1) at t.get (vendor.5593a633d149efa93b2d.bundle.js:1) at An (vendor.5593a633d149efa93b2d.bundle.js:1) at En (vendor.5593a633d149efa93b2d.bundle.js:1) at E (vendor.5593a633d149efa93b2d.bundle.js:1) at O (vendor.5593a633d149efa93b2d.bundle.js:1) at t._throwOrNull (vendor.5593a633d149efa93b2d.bundle.js:1) at t._getByKeyDefault (vendor.5593a633d149efa93b2d.bundle.js:1) at t._getByKey (vendor.5593a633d149efa93b2d.bundle.js:1) at t.get (vendor.5593a633d149efa93b2d.bundle.js:1) at Be (vendor.5593a633d149efa93b2d.bundle.js:1) at t.get (vendor.5593a633d149efa93b2d.bundle.js:1) at An (vendor.5593a633d149efa93b2d.bundle.js:1) at En (vendor.5593a633d149efa93b2d.bundle.js:1) at u (polyfills.67d068662b88f84493d2.bundle.js:formatted:2544) at u (polyfills.67d068662b88f84493d2.bundle.js:formatted:2525) at polyfills.67d068662b88f84493d2.bundle.js:formatted:2578 at e.invokeTask (polyfills.67d068662b88f84493d2.bundle.js:formatted:2342) at Object.onInvokeTask (vendor.5593a633d149efa93b2d.bundle.js:1) at e.invokeTask (polyfills.67d068662b88f84493d2.bundle.js:formatted:2342) at r.runTask (polyfills.67d068662b88f84493d2.bundle.js:formatted:2169) at o (polyfills.67d068662b88f84493d2.bundle.js:formatted:2007) at t.invokeTask [as invoke] (polyfills.67d068662b88f84493d2.bundle.js:formatted:2407) at h (polyfills.67d068662b88f84493d2.bundle.js:formatted:1416)

+0

는 조사 않은 경우이 각도 [버그] (https://github.com/angular/angular/issues/19267)? –

+0

@jeroen, 사실 그것은 어제 작동했는데, 다시 서비스를 수행 할 때 --prod -aot --port 4500이 작동하지만 기본적으로 adminsection 인 특정 링크를 클릭하면이 오류가 발생합니다. 관리 섹션에서 나는 작동하는 반응 형 양식을 사용하고 있지만 지금은 작동하지 않습니다. – PCA

+0

@ PCA 내 솔루션을 사용해 보셨습니까? 요 또는하지 않는 것이 유용할까요? l –

답변

0

이전에 나는 같은 문제에 직면 해 있습니다. 그리고 나는 다음과 같은 방법으로 해결했습니다.

{ provide: CookieOptions, useValue: {} } 

: 나는

import { CookieService } from 'angular2-cookie/services/cookies.service'; 

import { CookieService, CookieOptions } from 'angular2-cookie/core'; 

에 마지막으로 값합니다 (NgModule에서 공급자 목록에 추가)를 제공하여 CookieOptions에 기본값을 제공, 변경 자세한 내용은 아래 git hub issue 링크를 참조하십시오.

https://github.com/salemdar/angular2-cookie/issues/37

관련 문제