question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in Angular Universal with ngx-mask

See original GitHub issue

SSR broke after adding ngx-mask, error:

ReferenceError: KeyboardEvent is not defined
    at eval (webpack:///./node_modules/ngx-mask/fesm5/ngx-mask.js?:1027:88)
    at eval (webpack:///./node_modules/ngx-mask/fesm5/ngx-mask.js?:1075:2)
    at Object../node_modules/ngx-mask/fesm5/ngx-mask.js 

Version 7.8.9

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
bpopnikolovcommented, Apr 23, 2019

Hello are there any plans to merge #424? Seems like there are people who already tried this in prod and it works for them as well. This is the only solution I could come up with other than replacing the type of the event with any or messing up with the webpack’s config.

0reactions
NepipenkoIgorcommented, Apr 23, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 13, errors when trying to instal nguniversal/express ...
The reason is that the modules in your package.json file are not the latest version and incompatible with the latest version of Angular...
Read more >
Angular Ngx Mask Error (forked) - StackBlitz
Starter project for Angular apps that exports to the Angular CLI. ... <input type="text" mask="separator.2">. <p> actual result : 000 </p>.
Read more >
angular/universal - Gitter
Hi guyz, I am using Angular Universal but when the command npm run build:ssr && npm run serve:ssr. I am getting this error...
Read more >
module '"@angular/core"' has no exported member ... - You.com
angular /universalModule '"@angular/core"' has no exported member 'NgModuleFactoryLoader' · 2451 ; mohammedzamakhan/ngx-loadableAngular 13 support · 63 ; Arnaud73/ ...
Read more >
Solved: MSAL/Angular Browser error in chrome/firefox
import { NgxMaskModule, IConfig } from 'ngx-mask'; import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found