I am just getting started with the base tutorial for Angular but I face a small compilation issue.

I am following the tutorial on Angular's website. I am stuck with the dependency injection part because it doesn't want to compile.

In the tutorial they ask to create a service with :

```
ng generate service hero

```

In this generated service you have a decorator like this :

```
@Injectable()

```

Then they ask to add a parameter to that decorator like this :

```
@Injectable({
  providedIn: 'root'
})

```

When I try to do so I have a TypeScript error telling me :

> 
> error TS2554: Expected 0 arguments, but got 1.
>  The versions I use are those ones :
> 
> 
> 

```
Angular CLI: 1.7.4
Node: 9.5.0
OS: win32 x64
Angular: 5.2.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0

```

Any idea why it doesn't accept the parameter ?

Thanks in advance !