React.js not finding main route

时间:2015-05-24 20:48:57

标签: javascript reactjs

This is my route file. For some reason the routing stopped to work while I was updating a component. Now I'm getting the error below to my main page:

Cannot GET /

Route file:

/* ERROR PAGES */
var notfound = require('./routes/notfound.jsx');

/* APP PAGES */
var charts = require('./routes/app/charts.jsx');

/* ROUTES */
module.exports = (
  <Route handler={ReactRouter.RouteHandler}>
    <DefaultRoute handler={charts} />
    <Route path='/' handler={charts} />
    <NotFoundRoute handler={notfound} />
  </Route>
);

There is no error on the console. Just the message "Cannot GET /" and a 404 code.

I'm using React-Router.

0 个答案:

没有答案