React-router: 0.12.4 > 0.13.2 Upgrade Error: Super expression must either be null or a function, not undefined

Created on 1 Apr 2015  路  4Comments  路  Source: ReactTraining/react-router

To keep up with the latest changes, in a 0.12.4 React Router project I'm working on, I did a drop-in replacement upgrade to 0.13.2, and out of the gate, I get this error:

image

Seems like a compile-time error. I'm running Browserify to compile my modules (want to move to Webpack eventually, but need more time), and I also have React Router installed via Bower, with a browser entry pointing to the global unminified build: ./bower_components/react-router/build/global/ReactRouter.js. Any tips on ways to get around this?

Most helpful comment

I had the same problem.It's because that I didn't spell Component correctly,the first letter should be uppercase.

All 4 comments

This happened to me on one of my machines. The problem for me was that React.Component was not defined, which meant React was still at version 0.12.x, not 0.13.x. I had forgotten to npm install the newer version of React in that environment. Doing so fixed the problem.

Yep, I also had it for the same reason. Pretty sure it's not a router issue so closing down.

I had the same problem.It's because that I didn't spell Component correctly,the first letter should be uppercase.

@Hkmu :+1:

Was this page helpful?
0 / 5 - 0 ratings