Skip to content

TypeError: c.setTimeout is not a function #5960

@ShingLi

Description

@ShingLi

发行方式

App

具体平台

Android

开发环境

Windows

项目创建方式

HBuilderX

Vue 版本

vue3

依赖版本

HB 版本 4.87

问题描述

在开发环境会经常出现比如TypeError: c.setTimeout is not a function 或者 c.setInterval is not a function 这种问题

下面第一张图是开发环境HB日志,第二张图是在模拟器上的发行包

Image Image

重现步骤

生产环境这个问题不是必现,目前在发型包中是APP长时间不打开,然后打开的时候里面的代码执行定时器就会报错,开发环境如果在HB中重新运行有时候就会出现

期望行为

No response

实际行为

No response

截图或录屏

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions