zh-lx / code-inspector

Click the dom on the page, it will open your IDE and position the cursor to the source code location of the dom.
https://inspector.fe-dev.cn/en
MIT License
1.52k stars 113 forks source link

Vue3 如果注册全局的 warnHandler 拦截,会报 data-insp-path 的注入 warn #116

Closed wuhaohuang closed 4 months ago

wuhaohuang commented 5 months ago

提示:如果方便请加入本项目 README.md 最下面的 QQ 群或者微信群提供更详细的信息

// 全局 warn
app.config.warnHandler = (err, vm, info) => {
console.log('[全局warn]', err, vm, info);
};

Extraneous non-props attributes (data-insp-path) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.

image

有没有什么办法可以不报

zh-lx commented 5 months ago

收到,我优化一下

wuhaohuang commented 5 months ago

@zh-lx 还会报一个未知错误:Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core .

image

一用就会报,不用就不报

zh-lx commented 5 months ago

@zh-lx 还会报一个未知错误:Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core .

image

一用就会报,不用就不报

方便提供一个复现仓库吗,这种问题无复现仓库没法排查

zh-lx commented 4 months ago

已在 0.8.0 版本中修复了 warning 的问题,未知错误辛苦提供个可复现仓库

cjh-store commented 2 months ago

已在 0.8.0 版本中修复了 warning 的问题,未知错误辛苦提供个可复现仓库

image

在0.11.0版本中 vconsole还是有类似警告

zh-lx commented 2 months ago

已在 0.8.0 版本中修复了 warning 的问题,未知错误辛苦提供个可复现仓库

image

在0.11.0版本中 vconsole还是有类似警告

方便提供一个可复现的仓库看下不