Skip to content

[Bug Report] resizeobserver loop limit exceeded #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ckmzlf opened this issue Aug 22, 2022 · 4 comments
Closed

[Bug Report] resizeobserver loop limit exceeded #501

ckmzlf opened this issue Aug 22, 2022 · 4 comments
Labels

Comments

@ckmzlf
Copy link

ckmzlf commented Aug 22, 2022

选择要提交 issue 的库

vue-easytable

Issue 类型

Bug

Issue 标题

resizeobserver loop limit exceeded

仓库版本

v2.18.0

Vue 版本

vue2.6

浏览器

chrome80,chrome103

系统类型

windows

重现步骤

使用window.onerror监听,必现提示resizeobserver loop limit exceeded,跟element-ui的table提示有点类似

期望的结果是什么?

不再提示resizeobserver loop limit exceeded

实际的结果是什么?

提示resizeobserver loop limit exceeded

@huangshuwei
Copy link
Collaborator

此错误意味着 ResizeObserver 无法在单个动画帧内传递所有观察结果。它是良性的(您的网站不会崩溃)。如果需要屏蔽这个报告可以通过以下方式:

const e = window.onerror;
window.onerror = function (message, source, lineno, colno, error) {
    if (message === "ResizeObserver loop limit exceeded") {
        console.warn("Ignored: ResizeObserver loop limit exceeded");
        return false;
    } else {
        return e(...arguments);
    }
};

@Shaohong-Alex-Feng
Copy link

通过window.addEventListener进行的监控,修改onerror并不好用

@kittors
Copy link

kittors commented Nov 8, 2023

通过window.addEventListener进行的监控,修改onerror并不好用 +1

@lennokiki
Copy link

webpack编译时报的错,改一下vue.config.js配置,改完之后需要重启

devServer: { client: { overlay: false }, }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants