Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Uncaught ReferenceError: hashHistory is not defined #183

@msuzoagu

Description

@msuzoagu

Hi,

I am currently working through the tutorial. While completing lesson two, I noticed this error in my console:

Uncaught ReferenceError: hashHistory is not defined

Not exactly sure if this is a big deal (especial as I did get the extra junk params in the URL as expected) but thought to bring it up.

In the case that this isn't a problem, I would still like to know why I am getting that error in console.

To aid problem shooting, here is what index.js looks like for me:

// index.js
import React from 'react';
import { render } from 'react-dom';
import App from './app/App.js';

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

render((
  <Router history={hashHistory}>
    <Route path="/" component={App}/>
  </Router>
), document.getElementById('content'))

Hopefully, someone can help me understand what is going on. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions