code-chunks / angular2-logger

A log4j inspired logger for angular 2.
MIT License
144 stars 41 forks source link

Need to add Options to Service Providers #117

Open jcb982 opened 7 years ago

jcb982 commented 7 years ago

When I upgraded to Angular 2.4, I also had to add 'Options' (along with 'Logger') to my list of providers. Otherwise I received a DI error.

My dependancies:

"dependencies": { "@angular/common": "^2.4.3", "@angular/compiler": "^2.4.3", "@angular/compiler-cli": "^2.4.3", "@angular/core": "^2.4.3", "@angular/forms": "^2.4.3", "@angular/http": "^2.4.3", "@angular/platform-browser": "^2.4.3", "@angular/platform-browser-dynamic": "^2.4.3", "@angular/platform-server": "^2.4.3", "@angular/router": "^3.4.3", "@angular/upgrade": "^2.4.3", "@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.18", "angular-in-memory-web-api": "^0.2.4", "angular2-fontawesome": "^0.8.0", "angular2-logger": "^0.5.1", "bootstrap": "^3.3.7", "core-js": "^2.4.1", "font-awesome": "^4.7.0", "ng2-pagination": "^2.0.0", "primeng": "^1.1.4", "reflect-metadata": "^0.1.9", "rxjs": "^5.0.3", "typings": "^2.1.0", "webdriver-manager": "^11.1.1", "zone.js": "^0.7.6" }, "devDependencies": { "LiveScript": "^1.3.1", "babel-preset-es2015": "^6.18.0", "babelify": "^7.3.0", "bootstrap": "^4.0.0-alpha.5", "browserify": "^13.3.0", "bufferutil": "^1.3.0", "clean-css": "^3.4.23", "coffee-script": "^1.12.2", "concurrently": "^3.0.0", "json-schema-faker": "^0.3.6", "karma": "^1.4.0", "karma-browserify": "^5.1.0", "karma-chrome-launcher": "^2.0.0", "karma-jasmine": "^1.1.0", "less": "^2.7.2", "lite-server": "^2.2.2", "protractor": "^4.0.10", "rollup": "^0.36.4", "rollup-plugin-angular": "^0.4.3", "rollup-plugin-commonjs": "^5.0.5", "rollup-plugin-node-resolve": "^2.0.0", "rollup-plugin-uglify": "^1.0.1", "systemjs": "^0.19.42", "typescript": "^2.1.5", "uglify-js": "^2.7.5", "utf-8-validate": "^2.0.0", "watch": "^1.0.1", "watchify": "^3.8.0" }

langley-agm commented 7 years ago

Is this related to #101 ?

jcb982 commented 7 years ago

Seems plausible. Might be a different symptom of the same issue.