bdefore / universal-redux

An npm package that lets you jump right into coding React and Redux with universal (isomorphic) rendering. Only manage Express setups or Webpack configurations if you want to.
MIT License
460 stars 48 forks source link

InvariantViolation in Route with parameter #61

Closed jazzido closed 8 years ago

jazzido commented 8 years ago

I'm getting an InvariantViolation error in one of my routes (/cubes/:cube). Unfortunately, there is no detailed information about the exception, I just get this:

{
    "name": "Invariant Violation",
    "framesToPop": ​1
}

routes.js:

import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App/App';
import Home from './containers/Home/Home';
import CubeView from './containers/CubeView/CubeView';
import NotFound from './containers/NotFound/NotFound';

export default () => {
  return (
          <Route path="/" component={App}>
            <IndexRoute component={Home} />
            <Route path="/cube/:cube" component={CubeView} />
            <Route path="*" component={NotFound} status={404} />
          </Route>
  );
};

For reference, I've commited the current version of my code here: https://github.com/jazzido/throwaway

Thanks!

jazzido commented 8 years ago

Nevermind, the problem was somewhere else.