开发环境下的服务端渲染,执行npm run dev:server的时候报错
来源:2-5 服务端渲染基础配置

strom_shadow
2018-05-01
TypeError: Super expression must either be null or a function, not undefined
检查了App.jsx中,头部引入的React的方式是:
import React, { Component } from 'react'
App.jsx中使用的是:
export default class App extends Component { render () { return ( <div> Hello, React! </div> ) } }
感觉这么写也没错啊,怎么还是报错呢
写回答
2回答
-
Jokcy
2018-05-04
这个应该跟你写的代码有关系吧,好像很多问题都会引起这个错误,最典型的就是循环引用
00 -
strom_shadow
提问者
2018-05-01
客户端运行是正常的,没有问题
00
相似问题