All,
I encountered this same error today in a Pull Request:
./node_modules/@ng-dynamic-forms/ui-ng-bootstrap/fesm2020/ui-ng-bootstrap.mjs:729:307-323 - Error: export 'MaskDirective' (imported as 'i4') was not found in 'ngx-mask' (possible exports: INITIAL_CONFIG, NEW_CONFIG, NGX_MASK_CONFIG, NgxMaskDirective, NgxMaskModule, NgxMaskPipe, NgxMaskService, _configFactory, initialConfig, timeMasks, withoutValidation)
That said, the error ONLY seems to occur when an **incompatible** version of "ngx-mask" is installed.
In my case, I saw the error when building this PR:
https://github.com/DSpace/dspace-angular/pull/3433 This PR simply updated "ngx-mask" from version 14.2.4 to 14.3.3. But, that error occurs because in "ngx-mask" version 14.3.2 the "MaskDirective" class was renamed to "NgxMaskMaskDirective". See the "ngx-mask" changelog at
https://github.com/JsDaddy/ngx-mask/blob/develop/CHANGELOG.md#feature-1432
However, that doesn't explain why some people are encountering this issue in a "fresh install". The only way I see it is if the wrong version of "ngx-mask" is installed, but in DSpace 7.6.2 and 8.0, we **pin** "ngx-mask" to a compatible version.
So, I'm still stumped as to the reason why some people see this error. But, I've at least figured out a different scenario where it also occurs.
Tim