I set up a new Angular 5 project and it seems @Injectable decorator doesn't work. I have to inject manually with @Inject decorator for each parameter of constructors. I'm using Angular 5.0.5 with TS 2.4.2. This is my tsconfig.json:
{ "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es5", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2017", "dom" ] } }
I lost a lot of time on it and i really don't understand what happens. Do you have an idea of the problem ?