NodeInvocationException: Prerendering failed: ReferenceError: Event is not defined
See original GitHub issueAdded the statement below in package.json after installing “@swimlane/ngx-datatable”: “^11.0.4”,
In my app.module.ts: import { NgxDatatableModule } from ‘@swimlane/ngx-datatable’; This itself doesn’t throw any error.
imports: [ CommonModule, HttpModule, FormsModule, Ng2BootstrapModule.forRoot(), TransferHttpModule, NgxDatatableModule, BrowserModule ]
With the import, the below error happen. Please advise me.
I’m submitting a … (check one with “x”)
[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior NodeInvocationException: Prerendering failed because of error: ReferenceError: Event is not defined at C:\Project\AnglarUniversal4\ClientApp\dist\main-server.js:168292:42
Expected behavior My main page should run as per normal
Reproduction of the problem Download the template from: https://github.com/MarkPieszak/aspnetcore-angular2-universal
- npm install @swimlane/ngx-datatable
- add “@swimlane/ngx-datatable”: “^11.0.4” to packaga.json
- In app.module.ts, add the statement: import { NgxDatatableModule } from ‘@swimlane/ngx-datatable’;
- In app.module.ts, import NgxDatatableModule The issue should happen again
What is the motivation / use case for changing the behavior? to user ngx-datatable in my solution
Please tell us about your environment: just using Window 10 and Visual Studio 2017
-
Table version: 0.8.x I should be using the latest version
-
Angular version: 2.0.x I should be using the latest version
-
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Chrome: 61.0.3163.100
-
Language: [all | TypeScript X.X | ES6/7 | ES5] TypeScript 2.3 | ES5
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top GitHub Comments
I haven’t done any testing w/ Universal. Its on the list tho. I’ll poke around and see if I find anything obvious.
Sure thanks amcdnl. Please update if it is working with Angular Universal.