You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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
(It might be a documentation upgrade request rather than a bug report. In which case, I do apologise. I sought advice on StackOverflow but go no response there after more than a week, so I'm turning this into a bug report as a last resort.)
Current behavior
When ngx-datatable is imported into otherwise-unmodified Angular Universal Starter app (the one recently upgraded for Angular 5.0), it throws the following runtime error when run with server-side rendering:
dist\server.js:128395
__metadata("design:paramtypes", [Event]),
ReferenceError: Event is not defined
The server.js code it's referencing is from the DataTableBodyRowComponent of ngx-datatable:
Angular Universal Starter is a standard, often-recommended seed for Angular Universal apps. ngx-datatable should either work with it out of the box, OR the docs should be updated to explain what other changes need to be made.
I'm submitting a ... (check one with "x")
(It might be a documentation upgrade request rather than a bug report. In which case, I do apologise. I sought advice on StackOverflow but go no response there after more than a week, so I'm turning this into a bug report as a last resort.)
Current behavior
When ngx-datatable is imported into otherwise-unmodified Angular Universal Starter app (the one recently upgraded for Angular 5.0), it throws the following runtime error when run with server-side rendering:
The server.js code it's referencing is from the DataTableBodyRowComponent of ngx-datatable:
Expected behavior
Angular Universal Starter is a standard, often-recommended seed for Angular Universal apps. ngx-datatable should either work with it out of the box, OR the docs should be updated to explain what other changes need to be made.
Reproduction of the problem
Clone Angular Universal Starter and install dependencies.
build and run with
npm run build:ssr && npm run serve:ssr
. It runs fine.install ngx-datatable and import into app.module.ts as per the current documentation:
run clientside with ng serve. It runs without errors.
build and run serverside with
npm run build:ssr && npm run serve:ssr
. It throws the above error.What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Windows 10, Node 8.9.1
The text was updated successfully, but these errors were encountered: