cesarrew / ng2-currency-mask

A very simple currency mask directive that allows using a number attribute with the ngModel.
MIT License
235 stars 116 forks source link

Build error after upgrade to Angular 9 #146

Closed sikemullivan closed 4 years ago

sikemullivan commented 4 years ago

I upgraded to Angular 9, and I'm now receiving an error that Ivy is turned on. If I turn Ivy off, everything works fine.


ERROR in node_modules/ng2-currency-mask/src/currency-mask.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library (ng2-currency-mask) which declares CurrencyMaskModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if 
the library is expected to be compatible with Ivy.

1 export declare class CurrencyMaskModule {
                       ~~~~~~~~~~~~~~~~~~

** Angular Live Development Server is listening on localhost:4200, open your browser on https://localhost:4200/ **
95% emitting CopyPlugin    
    ERROR in src/app/app.module.ts:180:5 - error TS2304: Cannot find name 'CurrencyMaskModule'.

    180     CurrencyMaskModule,
            ~~~~~~~~~~~~~~~~~~
sikemullivan commented 4 years ago

Well, seems to be an issue with upgrading angular.

diegodsp commented 3 years ago

I'm with the same issue here.

gleisonkz commented 3 years ago

Same problem here with Version 12

krisnaRusdiono commented 1 year ago

no answer found to fix this, anyone?