Open helloneoberg opened 7 years ago
I have the same issue, Please help!
Same problem. Any news?
i read some issue listed https://github.com/swimlane/ngx-datatable/pull/1121 https://github.com/swimlane/ngx-datatable/issues/1042 and it make me think that probably the ngx-datatable won't work with Server Side Rendering and i am using Angular Universal which is SSR, thus i won't be able to use this component. Correct me if i am wrong. Thank you.
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.
Added 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")
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 1) npm install @swimlane/ngx-datatable 2) add "@swimlane/ngx-datatable": "^11.0.4" to packaga.json 3) In app.module.ts, add the statement: import { NgxDatatableModule } from '@swimlane/ngx-datatable'; 4) 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