You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, at runtime when we want to use the router object via injection
class View1 extends React.Component<IViewProps, IViewState> {
@inject()
public router!: RouterService;
...
this.router.getRoute().name;
...
}
we get following error message:
Error: Can't inject router as no binding for type function Object() {
[native code]
} was found. Did you register it in the DiContainer?
get inject.js:34
@prode81 Can you tell us what we are doing wrong here or how we can avoid this mistake?
The text was updated successfully, but these errors were encountered:
Hi,
we updated FTK from @daimler/ftk-core v0.4.3 to @mercedes-benz/ftk-core v0.4.5 but we are experiencing the exact same issue (same error message when using the injected router). @prode81 Can you please check why this is still the case and what we are doing wrong?
Thank you & best regards
We are in the process of updating FTK in our application from version 0.3.2 to version 0.4.3.
We followed the migration guidelines at https://github.com/mercedes-benz/mo360-ftk/blob/master/docs/guides/migration.md.
Therefore, we schematically adapted our original init() function as follows:
Unfortunately, at runtime when we want to use the router object via injection
we get following error message:
@prode81 Can you tell us what we are doing wrong here or how we can avoid this mistake?
The text was updated successfully, but these errors were encountered: