Ngx-mask: I got ../src/app/app.module.ts (49,27): Cannot find name 'options'.

Created on 16 Jan 2018  路  6Comments  路  Source: JsDaddy/ngx-mask

Here is the part of the code that is returning the error:

@NgModule({
declarations: [
AppComponent,
FooterComponent,
DialogComponent
],
imports: [
...
NgxMaskModule.forRoot(options), (This is line 49)
...
],

Any would be appreciated.

I follow thi tutorial: https://github.com/JsDaddy/ngx-mask

Most helpful comment

Just use

...
NgxMaskModule.forRoot()
...

The options parameter is optional, but the doc doesn't specifies that.

All 6 comments

@djromy2006 could you provide example of your options object ?

@NepipenkoIgor I had no clue about that and I took away the word "options" and the error was gone but the mask is not working. if you can provide me with some options in this case, then I will be more than happy.

@djromy2006 could you provide github repo with your example ?

@djromy2006 please read doc , we tested and didn't find problem or you could provide steps for reproduce your problem

I have the same error, did you find a solution ?!!

Just use

...
NgxMaskModule.forRoot()
...

The options parameter is optional, but the doc doesn't specifies that.

Was this page helpful?
0 / 5 - 0 ratings