-
Notifications
You must be signed in to change notification settings - Fork 93
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
Unhandled promise rejection #167
Comments
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..
So that's all.. there's no error description just that, any ideas what can be happening here? |
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.. |
I'm having the same problem when accessing localhost:4200.
LocalizeRouterModule.forRoot(routes, {
parser: {
provide: LocalizeParser,
useFactory: (translate, location, settings, http) =>
new LocalizeRouterHttpLoader(translate, location, settings, http),
deps: [TranslateService, Location, LocalizeRouterSettings, HttpClient]
}
}) |
so, changing tsconfig.json target from esnext to es5 and module to es2015 fixed it for me. |
Hi @Tyranwyn are you using Angular Universal too? |
No I am not |
I'm submitting a ... (check one with "x")
Description
I've downloaded the demo of localized-router to check the configuration, I've reviewed a lot and after my configuration I'm receiving this error:
I saw that in demo you're using angular 6 could this be an issue related to angular 8? thanks
🌍 Your Environment
Angular Version: 8.2.5
Localize Router Version:
2.0.0-RC.3
The text was updated successfully, but these errors were encountered: