忽略"ResizeObserver loop limit exceeded"和"ResizeObserver loop completed with undelivered notifications."两种错误。
向vue.config.js中添加以下代码:
module.exports = defineConfig({
...
devServer: {
client: {
overlay: {
warnings: false,
runtimeErrors: (error) => {
const ignoreErrors = [
"ResizeObserver loop limit exceeded",
"ResizeObserver loop completed with undelivered notifications.",
];
if (ignoreErrors.includes(error.message)) {
return false;
}
},
},
},
},
});
标签:VUE,completed,undelivered,notifications,ResizeObserver,loop
From: https://www.cnblogs.com/infocodez/p/18079393