Test-component plugin throws warning Invalid VNode type: Symbol(Fragment)
, and will not render the v-for
part of the markup.
If I remove the v-for
part of the template the warning disapears.
Users have reported similar problems with use of 'slot' in components...
Plugins with vue as a dependency do not work
| ...it works fine using Yarn, but not with NPM... This is somewhat expected because a plugin should never list vue as its direct dependency, because it must always use whatever version of Vue that the consuming application is using. A plugin should list vue as a dev/peer dependency and externalize it (if there is a build step).
Included example does just this. The test-component only uses vue as a dev and peer dependency
[Vue 3] Invalid VNode Symbol(Fragment) when using an external component with a slot
Interestingly a user in this thread stated that their issue went away, but they are using yarn
.
- clone this repo
- navigate to the
test-component
directory and usenpm install
- navigate to the
app
directory and usenpm install
- start the application from the
app
directory withnpm run start
- navigate to
localhost:8080
from a web browser and theInvalid VNode type: Symbol(Fragment)
warning will show up in the console