Skip to content

页面编译后实时更新出现TypeError: Super expression must either be null or a function,注明第一次的时候是正常的,重新编译后也是正常的就是刷新就出现问题了 #2704

@curryhh

Description

@curryhh

报错信息
20190408225233
20190408225240

Activity

taro-bot

taro-bot commented on Apr 8, 2019

@taro-bot

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

taro-bot

taro-bot commented on Apr 9, 2019

@taro-bot
beimuaihui

beimuaihui commented on Apr 12, 2019

@beimuaihui

我的h5页面修改后也经常出现这个问题

curryhh

curryhh commented on Apr 12, 2019

@curryhh
Author

@beimuaihui 对对 我也是h5的时候发现的,你有没有解决方式

SpinachMiss

SpinachMiss commented on Apr 12, 2019

@SpinachMiss

H5 很严格,你没有 export default

curryhh

curryhh commented on Apr 12, 2019

@curryhh
Author

@SpinachMiss
应该不是的 1.生成没问题的,刷新之后才会有问题2.我有注意export default 跟import,如果我没这个的话taro生成的时候是有问题的直接报错在控制台的

Littly

Littly commented on Apr 16, 2019

@Littly
Contributor

看这个报错日志,应该是页面文件缺少default导出导致的。在taro的路由处理中,default导出是必需品

.then(({ default: component }) => {
if (!component) {
throw Error(`Received a falsy component for route "${props.path}". Forget to export it?`)
}
const WrappedComponent = createWrappedComponent(component)
this.wrappedComponent = WrappedComponent
this.forceUpdate()
}).catch((e) => {

SeptemberMaples

SeptemberMaples commented on May 22, 2019

@SeptemberMaples

我刚刚更新taro也出现同样错误。 发现是taro-ui没有更新,更新到最新版,并根据文档引入.scss文件。解决了

curryhh

curryhh commented on May 23, 2019

@curryhh
Author

我刚刚更新taro也出现同样错误。 发现是taro-ui没有更新,更新到最新版,并根据文档引入.scss文件。解决了

谢谢了 我有时候出现那个问题而已,项目已经结束了

kenphil

kenphil commented on Jun 4, 2019

@kenphil

看这个报错日志,应该是页面文件缺少default导出导致的。在taro的路由处理中,default导出是必需品

.then(({ default: component }) => {
if (!component) {
throw Error(`Received a falsy component for route "${props.path}". Forget to export it?`)
}
const WrappedComponent = createWrappedComponent(component)
this.wrappedComponent = WrappedComponent
this.forceUpdate()
}).catch((e) => {

我也出现了这个问题,但是组件导出都有default,除了一些utils

LeleCao

LeleCao commented on Aug 6, 2019

@LeleCao

我也出现这个问题了,h5页面,有人知道怎么解决吗,taro兼容性也太弱了,开源了让我们做小白鼠吗

18 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @beimuaihui@younthu@SeptemberMaples@Littly@shenghanqin

      Issue actions

        页面编译后实时更新出现TypeError: Super expression must either be null or a function,注明第一次的时候是正常的,重新编译后也是正常的就是刷新就出现问题了 · Issue #2704 · NervJS/taro