Subscribe on changes!

[Vue warn]: Invalid VNode type: Symbol(Text) (symbol)

avatar
Mar 24th 2022

场景:应用有两个 vue runtime,vue1使用 createApp 挂载到另一个基座 vue2 app 上, vue1 中有传入插槽,其中 Text 节点无法被渲染,提示警告[Vue warn]: Invalid VNode type: Symbol(Text) (symbol)

简单调试了一下发现除了Symbol(Text) 不同, 其他 case 都相同,求解答

image
avatar
Mar 24th 2022

Hello, make sure to always provide a reproduction that follows the instructions at https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro.

Open a new issue with a reproduction that follows those instructions if you manage to create a boiled down reproduction.

avatar
Mar 24th 2022

Likely, you have two different copies of Vue, from two different node_modules folders, included in the project. Usually from npm link

We can't say more as you don't provide a reproduction.