For folks who are hitting this strange error ("export 'MaskDirective' 
(imported as 'i4') was not found in 'ngx-mask'"), could you share what 
version of Node you are using?  And what operating system?

While searching around, I came across a similar error on StackOverflow (not 
specific to DSpace).  In this scenario, the person said it only occurs with 
Node v18, while Node v16 works 
fine: 
https://stackoverflow.com/questions/78236715/how-to-solve-error-export-maskdirective-imported-as-i8-was-not-found-in-n

I'm not able to reproduce this error on Windows 11 using Node v18.20.2 & 
it's not occurred in our automatic build testing on Ubuntu (also using Node 
18).  But, it sounds like several of you are hitting this error.  So, maybe 
it's somehow specific to a version of Node?  Or specific to an Operating 
System?

Overall, this error is referencing *dependencies* of DSpace 
(@ng-dynamic-forms and ngx-mask), and not DSpace itself.  This is why I'm 
starting to wonder if there are specific build environments where these 
dependencies are not working properly.

If anyone has found a solution, hopefully they will share it so that we can 
document it.

Tim
On Tuesday, May 7, 2024 at 12:53:47 PM UTC-5 dto...@uw.edu wrote:

> Did the folks who ran into this error ever figure out how to resolve it? I 
> too am running into the error, even after Tim's troubleshooting steps.
>
> Thanks,
>
> -Dave
>
> On Saturday, April 20, 2024 at 7:06:12 AM UTC-7 Abdelouahab Djoudi wrote:
>
>
> i have the same issue 
> On Thursday, March 28, 2024 at 10:58:00 PM UTC+1 DSpace Technical Support 
> wrote:
>
> That sounds like an error because something didn't install properly.  I'd 
> recommend re-running the "yarn install" by doing this:
>
> # Clean current cached data
> yarn clean
>
> # Reinstall all dependencies
> yarn install
>
> # Try to build again
> yarn build:prod
>
> Hopefully it will succeed this time, as it sounds like it's complaining 
> that a dependency wasn't fully installed in that "yarn install" step.
>
> Tim
>
> On Thursday, March 21, 2024 at 4:14:01 AM UTC-5 stb...@gmail.com wrote:
>
> Dear all,
>
> after building yarn build:prod I have got the error message:
>
> ./node_modules/@ng-dynamic-forms/ui-ng-bootstrap/fesm2020/ui-ng-bootstrap.mjs:736:285-301
>  
> - 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) 
>
> What should I do now?
>
> Thanking you in advance
> Stefanie 
>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/cc9949a5-24f9-4c15-a29d-40d8cf6fb6e7n%40googlegroups.com.

Reply via email to