Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade version 1.2.5 problem #13

Closed
acivan opened this issue Jan 12, 2016 · 5 comments
Closed

Upgrade version 1.2.5 problem #13

acivan opened this issue Jan 12, 2016 · 5 comments

Comments

@acivan
Copy link

acivan commented Jan 12, 2016

EXCEPTION: No provider for Http! (App -> TranslateService -> Http)
browser_adapter.js:76EXCEPTION: No provider for Http! (App -> TranslateService -> Http)BrowserDomAdapter.logError @ browser_adapter.js:76BrowserDomAdapter.logGroup @ browser_adapter.js:86ExceptionHandler.call @ exception_handler.js:56(anonymous function) @ application_ref.js:183NgZone._notifyOnError @ ng_zone.js:430errorHandling.onError @ ng_zone.js:328run @ core.js:99(anonymous function) @ ng_zone.js:343zoneBoundFn @ core.js:69lib$es6$promise$$internal$$tryCatch @ es6-promise.js:326lib$es6$promise$$internal$$invokeCallback @ es6-promise.js:338lib$es6$promise$$internal$$publish @ es6-promise.js:309(anonymous function) @ microtask.js:37microtask @ ng_zone.js:383run @ core.js:96(anonymous function) @ ng_zone.js:343zoneBoundFn @ core.js:69lib$es6$promise$asap$$flush @ es6-promise.js:120
browser_adapter.js:76STACKTRACE:BrowserDomAdapter.logError @ browser_adapter.js:76ExceptionHandler.call @ exception_handler.js:58(anonymous function) @ application_ref.js:183NgZone._notifyOnError @ ng_zone.js:430errorHandling.onError @ ng_zone.js:328run @ core.js:99(anonymous function) @ ng_zone.js:343zoneBoundFn @ core.js:69lib$es6$promise$$internal$$tryCatch @ es6-promise.js:326lib$es6$promise$$internal$$invokeCallback @ es6-promise.js:338lib$es6$promise$$internal$$publish @ es6-promise.js:309(anonymous function) @ microtask.js:37microtask @ ng_zone.js:383run @ core.js:96(anonymous function) @ ng_zone.js:343zoneBoundFn @ core.js:69lib$es6$promise$asap$$flush @ es6-promise.js:120
browser_adapter.js:76Error: DI Exception
at NoProviderError.BaseException as constructor
at NoProviderError.AbstractProviderError as constructor
at new NoProviderError (exceptions.js:74)
at Injector._throwOrNull (injector.js:852)
at Injector._getByKeyDefault (injector.js:903)
at Injector._getByKey (injector.js:843)
at Injector._getByDependency (injector.js:829)
at Injector._instantiate (injector.js:721)
at Injector._instantiateProvider (injector.js:712)
at Injector._new (injector.js:701)BrowserDomAdapter.logError @ browser_adapter.js:76ExceptionHandler.call @ exception_handler.js:59(anonymous function) @ application_ref.js:183NgZone._notifyOnError @ ng_zone.js:430errorHandling.onError @ ng_zone.js:328run @ core.js:99(anonymous function) @ ng_zone.js:343zoneBoundFn @ core.js:69lib$es6$promise$$internal$$tryCatch @ es6-promise.js:326lib$es6$promise$$internal$$invokeCallback @ es6-promise.js:338lib$es6$promise$$internal$$publish @ es6-promise.js:309(anonymous function) @ microtask.js:37microtask @ ng_zone.js:383run @ core.js:96(anonymous function) @ ng_zone.js:343zoneBoundFn @ core.js:69lib$es6$promise$asap$$flush @ es6-promise.js:120
bootstrap.ts:18NoProviderError {message: "No provider for Http! (App -> TranslateService -> Http)", stack: "Error: DI Exception↵ at NoProviderError.BaseExc…ttp://127.0.0.1:8899/build/common.js:9511:22)", keys: Array[3], injectors: Array[3]}


note:V 1.2.4 is OK。

@acivan acivan changed the title Upgrad version 1.2.5 problem Upgrade version 1.2.5 problem Jan 12, 2016
@ocombe
Copy link
Collaborator

ocombe commented Jan 12, 2016

It's probably because you need to load the HTTP_PROVIDERS in your bootstrap:

bootstrap(AppComponent, [
    HTTP_PROVIDERS,
    TranslateService
]);

@acivan
Copy link
Author

acivan commented Jan 13, 2016

Hi, everything is ok when I switch back to 1.2.4. But it does not work with 1.2.5. HTTP_PROVIDERS is loaded in bootstrap()

@ocombe
Copy link
Collaborator

ocombe commented Jan 13, 2016

And you use angular 2 beta 1 ?

@acivan
Copy link
Author

acivan commented Jan 14, 2016

Yes,I use angular 2 beta 1 .

@acivan
Copy link
Author

acivan commented Jan 14, 2016

I know the problem ,Because I will useStaticFilesLoader written in the front.

Thanks for your answer.

@ocombe ocombe closed this as completed in 1100552 Jan 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants