fix: 过滤 dev overlay 中误报的 ResizeObserver loop 错误
ResizeObserver loop completed with undelivered notifications 是浏览器 规范允许的良性通知,Element Plus 下拉框展开时会触发,不影响实际功能。 webpack-dev-server 错误地将其当成运行时错误弹出 overlay,通过 client.overlay.runtimeErrors 回调将其过滤掉。 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d4ec727437
commit
e729ac1af2
@ -45,6 +45,12 @@ module.exports = defineConfig({
|
||||
},
|
||||
devServer: {
|
||||
port: 8080,
|
||||
client: {
|
||||
overlay: {
|
||||
// ResizeObserver loop 是浏览器规范允许的良性通知,不是真实错误,过滤掉避免干扰开发
|
||||
runtimeErrors: (err) => err?.message !== 'ResizeObserver loop completed with undelivered notifications.'
|
||||
}
|
||||
},
|
||||
proxy: {
|
||||
'^/api': {
|
||||
target: process.env.VUE_APP_PROXY_TARGET,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user