反应路由器错误:超级表达式必须为空或函数 [英] React-router error: super expression must either be null or a function

查看:47
本文介绍了反应路由器错误:超级表达式必须为空或函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 react-router 的新手(https://github.com/rackt/react-router).我在这样的反应后包括它:

I am new to react-router (https://github.com/rackt/react-router). I included it after react like this:

<script src="http://fb.me/react-0.12.2.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reactrouter/0.13.2/ReactRouter.js"></script>

我遇到了一个错误:未捕获的类型错误:超级表达式必须为 null 或函数,不能为未定义

I got an error: Uncaught TypeError: Super expression must either be null or a function, not undefined

我做错了什么?

推荐答案

我通过将 react 版本升级到 0.13.3 来解决这个问题

I sloved the issue by upgrading react version to 0.13.3

npm install react@0.13.3

这篇关于反应路由器错误:超级表达式必须为空或函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆