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.

new version with angular universal 11

See original GitHub issue
Bug Report or Feature Request (mark with an x)

- [ ] Bug report

/home/moniaz/testwebsites/server/server/main.js:3221
document.webL10n = function (window, document, undefined) {
^
ReferenceError: document is not defined
    at Object.<anonymous> (/home/moniaz/testwebsites/server/server/main.js:3221:1)
    at __w_pdfjs_require__ (/home/moniaz/testwebsites/server/server/main.js:175:30)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:38 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
markhughescommented, Mar 12, 2021

@VadimDez here is what is causing the issue: see lines in this diff.

3reactions
mbabaei0commented, Feb 23, 2021

@kevinvarela for now you can just change package.json : "ng2-pdf-viewer": "^6.3.2" and "pdfjs-dist": "^2.5.207" to: "pdfjs-dist": "2.5.207" and "ng2-pdf-viewer": "6.3.2"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server-side rendering (SSR) with Angular Universal
This guide describes Angular Universal, a technology that renders Angular applications on the server. A normal Angular application executes in the browser, ...
Read more >
Releases · angular/universal - GitHub
15.0.0 (2022-11-16). Breaking Changes. @nguniversal/common. Angular universal no longer supports Node.js versions 14.[15-19].x and 16.
Read more >
Angular Universal: Complete Practical Guide
This post will be a complete practical guide for getting started with Angular Universal. We are going to go start with an existing...
Read more >
Server Side rendering with Angular universal 14 - Ganatan
Angular -universal allows to manage the seo with the server side rendering technique. ... The latest version of this tool is available below....
Read more >
Angular Universal - server-side rendering for Angular.
Create new Angular project: Create new Angular Application using command: ; Install Angular Universal and update project files: Use Angular Schematics to add ......
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