Coder Social home page Coder Social logo

Comments (6)

BruneXX avatar BruneXX commented on June 14, 2024

Hi new update:

I've managed to solve this, but now I'm experiencing no errors on compílation, but when I'm trying to access to the app I'm receiving the following error in the node console..

ERROR [Error]

So that's all.. there's no error description just that, any ideas what can be happening here?

from localize-router.

BruneXX avatar BruneXX commented on June 14, 2024

well, I went a little further and found that it seems to be a problem with createTranslateLoader funciton but I'm not 100% sure, I've reviewed an old angular repo https://github.com/gilsdav/angular-universal-localize-router

and there's seems to be using a ManualParserLoader that apparently works.. so at least the app is up and running using that loader instead of the createTranslateLoader

If someone have a clue on this will be really appreciated since the localize-router documentation is not so clear how should be implemented in the universal apps..

from localize-router.

Tyranwyn avatar Tyranwyn commented on June 14, 2024

I'm having the same problem when accessing localhost:4200.

TypeError: Class constructor SystemJsNgModuleLoader cannot be invoked without 'new'
at new LocalizeRouterConfigLoader (:4200/vendor.js:176186)
at createClass (:4200/vendor.js:91249)
at createProviderInstance (:4200/vendor.js:91210)
at initNgModule (:4200/vendor.js:91116)
at new NgModuleRef
(:4200/vendor.js:92226)
at createNgModuleRef (:4200/vendor.js:92209)
at Object.debugCreateNgModuleRef [as createNgModuleRef] (:4200/vendor.js:104419)
at NgModuleFactory
.create (:4200/vendor.js:105552)
at :4200/vendor.js:100252
at ZoneDelegate.invoke (:4200/polyfills.js:10931)

LocalizeRouterModule.forRoot(routes, {
      parser: {
        provide: LocalizeParser,
        useFactory: (translate, location, settings, http) =>
          new LocalizeRouterHttpLoader(translate, location, settings, http),
        deps: [TranslateService, Location, LocalizeRouterSettings, HttpClient]
      }
    })

from localize-router.

Tyranwyn avatar Tyranwyn commented on June 14, 2024

so, changing tsconfig.json target from esnext to es5 and module to es2015 fixed it for me.

from localize-router.

BruneXX avatar BruneXX commented on June 14, 2024

Hi @Tyranwyn are you using Angular Universal too?

from localize-router.

Tyranwyn avatar Tyranwyn commented on June 14, 2024

No I am not

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.