Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular bootstrap not loading (after pre-render) for dynamic routes #1657

Open
ohabash opened this issue Apr 11, 2023 · 0 comments
Open

Angular bootstrap not loading (after pre-render) for dynamic routes #1657

ohabash opened this issue Apr 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ohabash
Copy link

ohabash commented Apr 11, 2023

🐞 Bug report

Description

my homepage and some other routes pre-render then transition to an angular app perfectly. But there are some routes that load a good looking prerender but the bootstrap never loads so it just remains static. (hope that makes sense).

The routes not working are shown below. (members). There must be something wrong with the routes object in the scully config.

🔬 Minimal Reproduction


export const config: ScullyConfig = {
  projectRoot: './apps/habitat-commons/src',
  projectName: 'habitat-commons',
  spsModulePath: 'YOUR OWN MODULE PATH HERE',
  outDir: './dist/static',
  appPort: 2010,
  staticPort: 2011,
  reloadPort: 2012,
  inlineStateOnly: false,
  defaultPostRenderers: ['lazyImages', MinifyHtml],
  routes: {
    [`/members/:slug`]: {
      route: `/members/:slug`,
      type: 'json',
      // defaultPostRenderers: postRenderers,
      slug: {
        url: `https://**-default-rtdb.firebaseio.com/content/members/en-US.json`,
        resultsHandler: (response) => toArray(response),
        property: 'slug',
      },
      postRenderers: postRenderers,
    }
  }, // dynamic paths
};

💻Your Environment

Angular Version:


Angular CLI: 13.3.10
Node: 16.19.1
Package Manager: npm 8.19.3
OS: darwin arm64

Angular: 13.2.5
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1302.5
@angular-devkit/build-angular   13.2.5
@angular-devkit/core            13.2.5
@angular-devkit/schematics      13.3.10
@angular/cli                    13.3.10
@angular/fire                   7.5.0
@angular/google-maps            13.3.9
@angular/pwa                    13.3.10
@nguniversal/express-engine     13.1.1
@schematics/angular             13.3.11
ng-packagr                      13.2.1
rxjs                            6.6.7
typescript                      4.5.5

Scully Version:


"@scullyio/init": "^2.1.21",
"@scullyio/ng-lib": "^2.1.0",
"@scullyio/platform-server": "^2.1.0",
"@scullyio/scully": "^2.1.0",
"@scullyio/scully-plugin-puppeteer": "^2.1.21",

🔥 Exception or Error


there are no errors. The bootstrap simply never loads after the prerender loads
@ohabash ohabash added the bug Something isn't working label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant