Skip to content

Cannot read property 'makeHref' of undefined error when rendering <Link> component #1446

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
andrewpillar opened this issue Jun 30, 2015 · 5 comments

Comments

@andrewpillar
Copy link

I'm getting the Cannot read property 'makeHref' of undefined error when I'm trying to render the <Link /> component. My component which is rendering the <Link /> component:

import { Router, Link } from 'react-router';

class RoomList extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        var roomNodes = this.props.rooms.map(function(room) {
            return (
                <div key={room.id} className="room-item">
                    <Link to='room' params={{ id: room.id }}>{room.name}</Link>
                </div>
            );
        });

        return (<div className="room-list">{roomNodes}</div>);
    }
}

export default RoomList;

Any ideas what could be causing this?

@andrewpillar andrewpillar changed the title toUpperCase is not a function error when rendering <Link> component Cannot read property 'makeHref' of undefined error when rendering <Link> component Jun 30, 2015
@mjackson
Copy link
Member

It sounds like you're using beta2. This issue has already been fixed in master.

@Peege151
Copy link

Peege151 commented Jul 8, 2015

I'm getting this error in 0.13.3

@MinThaMie
Copy link

I get the same error, also using 0.13.3. Would be awesome if this could be fixed!

@airwin
Copy link

airwin commented Oct 21, 2015

#982 (comment)
Works~!

@gt-leibin
Copy link

0.13.4....

@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 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

6 participants