GithubHelp home page GithubHelp logo

Comments (4)

vytautas-pranskunas- avatar vytautas-pranskunas- commented on May 24, 2024

I was able to solve this issue and seems like this is not working with initialNavigation: 'enabled' on Router. And this is needed to prevent flickering with SSR.

Also i have an error on SSR: Error: Cannot find module './components/home/home.module.ngfactory' - how this can be solved?

from localize-router.

rafa-suagu avatar rafa-suagu commented on May 24, 2024

@vytautas-pranskunas- I solved this issue.

Our error was on the imports order on app-routing.module. The Router must be the first import, before LocalizeRouter

@NgModule({
  imports: [
    RouterModule.forRoot(appRoutes), <---------------- FIRST
    LocalizeRouterModule.forRoot(appRoutes)
  ],
  exports: [
    RouterModule, <---------------- FIRST
    LocalizeRouterModule
  ]
})

I don't know exactly if it's relevant on the forChild imports and exports but make sense follow the same order.

NOTE: We have SSR implemented

from localize-router.

qubiack avatar qubiack commented on May 24, 2024

@rafa-as We have import and export for parent app-routing.module, but it's doesn't change anything. Doesn't work.

from localize-router.

gilsdav avatar gilsdav commented on May 24, 2024

@vytautas-pranskunas- It's an SSR error. Do you use @nguniversal/module-map-ngfactory-loader ?
This module change "lazy-load" to "simple load" only on server-side.

from localize-router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.