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.

Pre-render from external source returns non-rendered html instead of static HTML Page

See original GitHub issue

🐞 Bug report

What modules are related to this issue?

  • aspnetcore-engine
  • builders
  • common
  • express-engine
  • hapi-engine
  • module-map-ngfactory-loader

Is this a regression?

No

Description

When pre-rendering routes with any http calls, the route will be skipped to a non-rendered index.html

🔬 Minimal Reproduction

Any component with http call like using AngularFirestore

🔥 Exception or Error

🌍 Your Environment


Angular CLI: 9.1.7
Node: 13.5.0
OS: darwin x64

Angular: 9.1.9
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.7
@angular-devkit/build-angular     0.901.7
@angular-devkit/build-optimizer   0.901.7
@angular-devkit/build-webpack     0.901.7
@angular-devkit/core              9.0.7
@angular-devkit/schematics        9.1.7
@angular/cli                      9.1.7
@angular/fire                     6.0.0
@ngtools/webpack                  9.1.7
@nguniversal/builders             9.1.1
@nguniversal/common               9.1.1
@nguniversal/express-engine       9.1.1
@schematics/angular               9.1.7
@schematics/update                0.901.7
rxjs                              6.5.5
typescript                        3.7.5
webpack                           4.42.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
CaerusKarucommented, Jun 14, 2020

This is solely an issue with Angular Fire. They’ve had several issues with Angular Universal compatibility, but unfortunately we do not own or contribute to that project.

0reactions
angular-automatic-lock-bot[bot]commented, Jul 15, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

General tips and best practices - Troubleshooting - Prerender.io
The Prerender service renders all JavaScript content on your page and returns the fetched and prerendered DOM content to the middleware, which ...
Read more >
Prerendering static pages - Angular
Prerendering is the process where a dynamic page is processed at build time generating static HTML. How to prerender a pagelink. To prerender...
Read more >
Pre-Rendering into Static HTML Files - Create React App
The primary benefit of pre-rendering is that you get the core content of each page with the HTML payload—regardless of whether or not...
Read more >
Next.JS - Pre-Rendering - Topcoder
Next.js pre-generates HTML for every page rather than having it all done by the client-side JavaScript. Pre-rendering is finished by default ...
Read more >
JavaScript Crawling Study: Rendered vs. Non-Rendered HTML
96% of the domains we crawled have differences between the rendered HTML and the original source code (non-rendered HTML).
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