Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Invalid VNode error with v-for #3

Open
husayt opened this issue Jun 30, 2020 · 1 comment
Open

Invalid VNode error with v-for #3

husayt opened this issue Jun 30, 2020 · 1 comment

Comments

@husayt
Copy link

husayt commented Jun 30, 2020

Is there anything one needs to be aware of with v-for?

<compiler compiler="vugel">
    <container>  
      <text v-for="a in 10" :key="a" :x="110" :y="10">{{a}}</text>
    </container>
</compiler>

I have spent some time trying to get above working. It works without v-for, but with v-for I get the following error:

Invalid VNode type: Symbol(Fragment) (symbol) 
  at <TestComp> 
  at <Anonymous> 

Edit: I guess this is related to custom-block implementation, rather than Vugel itself. With codepen example v-for works fine, but when I try with vite and the custom block implemented here I get above exception.

Custom block is discussed here #2

@RobbinBaauw
Copy link
Contributor

Yeah, the custom block impl may not work great. If you can reproduce this in codepen there would be an actual bug. v-for etc should just work normally.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants