Guest User

Untitled

a guest
Mar 19th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. Error: Token must be defined!
  2. at new ReflectiveKey (http://localhost:4200/vendor.bundle.js:48893:19) [angular]
  3. at KeyRegistry.get (http://localhost:4200/vendor.bundle.js:48946:39) [angular]
  4. at Function.ReflectiveKey.get (http://localhost:4200/vendor.bundle.js:48911:35) [angular]
  5. at ReflectiveInjector_.get (http://localhost:4200/vendor.bundle.js:117530:102) [angular]
  6. at AppModuleInjector.NgModuleInjector.get (http://localhost:4200/vendor.bundle.js:66988:52) [angular]
  7. at RouterInitializer.appInitializer (http://localhost:4200/vendor.bundle.js:73780:48) [angular]
  8. at new ApplicationInitStatus (http://localhost:4200/vendor.bundle.js:46874:45) [angular]
  9. at AppModuleInjector.createInternal (/AppModule/module.ngfactory.js:424:36) [angular]
  10. at AppModuleInjector.NgModuleInjector.create (http://localhost:4200/vendor.bundle.js:66971:76) [angular]
  11. at NgModuleFactory.create (http://localhost:4200/vendor.bundle.js:66939:18) [angular]
  12. at http://localhost:4200/vendor.bundle.js:47309:61 [angular]
  13. at Object.onInvoke (http://localhost:4200/vendor.bundle.js:37314:37) [angular]
  14.  
  15. "dependencies": {
  16. "@angular/common": "2.4.2",
  17. "@angular/compiler": "2.4.2",
  18. "@angular/core": "2.4.2",
  19. "@angular/forms": "2.4.2",
  20. "@angular/http": "2.4.2",
  21. "@angular/material": "2.0.0-beta.1",
  22. "@angular/platform-browser": "2.4.2",
  23. "@angular/platform-browser-dynamic": "2.4.2",
  24. "@angular/router": "^3.4.2",
  25. "@ngrx/core": "^1.1.0",
  26. "@ngrx/effects": "^2.0.0",
  27. "@ngrx/store": "^2.1.2",
  28. "@ngrx/store-devtools": "^3.2.3",
  29. "core-js": "^2.4.1",
  30. "material-design-icons": "^3.0.1",
  31. "reflect-metadata": "^0.1.3",
  32. "reselect": "^2.5.4",
  33. "rxjs": "5.0.1",
  34. "systemjs": "0.19.27",
  35. "zone.js": "^0.7.2"
  36.  
  37. let someService
  38. ...
  39. someService= TestBed.get(someService);
  40.  
  41. someService= TestBed.get(SomeService); <-- with big caps 'S'
Add Comment
Please, Sign In to add comment