JsDaddy / ngx-mask

Angular Plugin to make masks on form fields and html elements.
https://jsdaddy.github.io/ngx-mask
MIT License
1.16k stars 300 forks source link

Module '"ngx-mask"' has no exported member 'MaskPipe'. After 13.2.1 Upgrade #1245

Closed Siva8877 closed 1 year ago

Siva8877 commented 1 year ago

Im Using "ngx-mask": "^13.1.14". Till last week it worked fine. After 13.2.1 Upgrade we are getting build issue like "Module '"ngx-mask"' has no exported member 'MaskPipe'."

I used to import { MaskPipe } from 'ngx-mask'- and use transform function. this.maskPipe.transform

andriikamaldinov1 commented 1 year ago

@Siva8877 Thanks for using Ngx-mask. Could you provide stakcblitz? Because here's an example and it works as expected - https://stackblitz.com/edit/angular-ivy-fms6ed?file=src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts,src%2Fmain.ts

lukk84 commented 1 year ago

Please note the difference between MaskPipe vs NgxMaskPipe and MaskDirective vs NgxMaskDirective Those changes were introduce with https://github.com/JsDaddy/ngx-mask/pull/1053 I'm not sure if such a breaking change should be part of minor update from 13.1.x to 13.2.x

andriikamaldinov1 commented 1 year ago

@Siva8877 @lukk84 This is not a minor version update, as we have not updated version 13 for a long time and this update includes many fixes that are in version 16. Please use NgxMaskPipe in the new version

lukk84 commented 1 year ago

fixes are ok, breaking changes not...