TrilonIO / universal-nest

Nest + Angular Universal = ❤️ by @TrilonIO
https://trilon.io
MIT License
297 stars 61 forks source link

ReferenceError: Element is not defined #31

Closed emertola closed 4 years ago

emertola commented 4 years ago

I tried to run the npm run build:ssr && npm run serve:ssr, and it returned an error:

/<project_path>/node_modules/pdfjs-dist/build/pdf.js:1057
    if (typeof Element.prototype.remove !== 'undefined') {

ReferenceError: Element is not defined

Note, that this is an existing angular app and I just added angular universal using nestjs approach. What I did was converted angular 7 to 8, then added angular universal.

Please help.

kamilmysliwiec commented 4 years ago

Please, provide a minimal repository which reproduces your issue.