Skip to content

makePath was not specified in Link #513

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

Closed
canuzunoglu opened this issue Nov 24, 2014 · 2 comments
Closed

makePath was not specified in Link #513

canuzunoglu opened this issue Nov 24, 2014 · 2 comments

Comments

@canuzunoglu
Copy link

First of all, sorry for my poor english.

When i try to use Link component in my App class, i am getting these error messages.

I tried but couldn't find a solution.

Warning: Required context `makePath` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `makeHref` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `transitionTo` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `replaceWith` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `goBack` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `getCurrentPath` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `getCurrentRoutes` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `getCurrentParams` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `getCurrentQuery` was not specified in `Link`. Check the render method of `App`.
Warning: Required context `isActive` was not specified in `Link`. Check the render method of `App`.
Uncaught TypeError: undefined is not a function

// "makeHref" is in "Navigation" object
// context is undefined

makeHref: function (to, params, query) {
    return this.context.makeHref(to, params, query); //error line
},
@mjackson
Copy link
Member

Are you using cloneWithProps anywhere? The context property doesn't propagate properly when you do.

@canuzunoglu
Copy link
Author

Okay, i am an idiot.

I rendered page on the server-side and didn't run Router.run() on client side =(

Sorry for trouble and thanks for help.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants