{"action":"closed","issue":{"url":"https://api.github.com/repos/ocombe/ng2-translate/issues/120","repository_url":"https://api.github.com/repos/ocombe/ng2-translate","labels_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/120/comments","events_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/120/events","html_url":"https://github.com/ocombe/ng2-translate/issues/120","id":154124337,"number":120,"title":"Error on bootstrap with TRANSLATE_PROVIDERS","user":{"login":"svenloe","id":8228756,"avatar_url":"https://avatars.githubusercontent.com/u/8228756?v=3","gravatar_id":"","url":"https://api.github.com/users/svenloe","html_url":"https://github.com/svenloe","followers_url":"https://api.github.com/users/svenloe/followers","following_url":"https://api.github.com/users/svenloe/following{/other_user}","gists_url":"https://api.github.com/users/svenloe/gists{/gist_id}","starred_url":"https://api.github.com/users/svenloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenloe/subscriptions","organizations_url":"https://api.github.com/users/svenloe/orgs","repos_url":"https://api.github.com/users/svenloe/repos","events_url":"https://api.github.com/users/svenloe/events{/privacy}","received_events_url":"https://api.github.com/users/svenloe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-10T22:52:10Z","updated_at":"2016-06-19T14:53:00Z","closed_at":"2016-06-19T14:53:00Z","body":"Hello,\r\n\r\nI use ng2-translate in my app version 2.1.0. After the update to Rc1 translate causes this error message:\r\n\r\n`system-polyfills.js:4 Error: Error: Invalid provider - only instances of Provider and Type are allowed, got: [object Object]\r\n\t    at InvalidProviderError.BaseException [as constructor] (http://localhost:8080/ravgruppe-web/node_modules/@angular/core/src/facade/exceptions.js:17:23)\r\n\t    at new InvalidProviderError (http://localhost:8080/ravgruppe-web/node_modules/@angular/core/src/di/reflective_exceptions.js:180:16)\r\n\t    at eval (http://localhost:8080/ravgruppe-web/node_modules/@angular/core/src/di/reflective_provider.js:162:19)\r\n\t    at Array.forEach (native)\r\n\t    at _normalizeProviders (http://localhost:8080/ravgruppe-web/node_modules/@angular/core/src/di/reflective_provider.js:145:15)\r\n\t    at eval (http://localhost:8080/ravgruppe-web/node_modules/@angular/core/src/di/reflective_provider.js:156:13)\r\n\t    at Array.forEach (native)\r\n\t    at _normalizeProviders (http://localhost:8080/ravgruppe-web/node_modules/@angular/core/src/di/reflective_provider.js:145:15)\r\n\t    at eval (http://localhost:8080/ravgruppe-web/node_modules/@angular/core/src/di/reflective_provider.js:156:13)\r\n\t    at Array.forEach \r\n`\r\nThe translate.service is not provided. The typecheck fails.\r\nThe reflect-metadata version of Angular rc1 is 0.1.3 and the one of ng2-translate is 0.1.2.\r\n\r\nmain.ts file: \r\n`import {bootstrap}    from '@angular/platform-browser-dynamic';\r\nimport {HTTP_PROVIDERS} from '@angular/http';\r\nimport {TRANSLATE_PROVIDERS, TranslateService, TranslatePipe, TranslateLoader, TranslateStaticLoader} from 'ng2-translate/ng2-translate';\r\nimport 'rxjs/Rx';\r\nimport {ROUTER_DIRECTIVES, ROUTER_PROVIDERS} from '@angular/router';\r\nimport {AppComponent} from './ravgruppe/app.component';\r\nbootstrap(AppComponent, [HTTP_PROVIDERS,TRANSLATE_PROVIDERS, ROUTER_PROVIDERS]); \r\n//bootstrap(AppComponent, [HTTP_PROVIDERS, ROUTER_PROVIDERS]);`\r\n\r\nIf I remove TRANSLATE_PROVIDERS bootstrap works but the pipes fail. \r\n\r\nsystemjs.config.js:\r\n`var map = {\r\n    'app':                        'app', // 'dist',\r\n    'rxjs':                       'node_modules/rxjs',\r\n    'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',\r\n    '@angular':                   'node_modules/@angular',\r\n    'ng2-translate': \t\t\t  'node_modules/ng2-translate',\r\n    'angular2':\t\t\t\t\t  'node_modules/angular2'\r\n  };\r\n  var packages = {\r\n    'app':                        { main: 'main.js',  defaultExtension: 'js' },\r\n    'rxjs':                       { defaultExtension: 'js' },\r\n    'angular2-in-memory-web-api': { defaultExtension: 'js' },\r\n    'ng2-translate': \t\t\t  { defaultExtension: 'js' },\r\n    'angular2':\t\t \t\t\t  { defaultExtension: 'js' }\r\n  };`\r\n\r\nDo you have an idea how I can fix the issue?\r\n\r\nYours\r\nSven"}}
{"actor":{"display_login":"svenloe"}}