AlexandreBonaventure / vue-zdog

Vue wrapper for zDog
https://alexandrebonaventure.github.io/vue-zdog/
MIT License
56 stars 8 forks source link

Zdog[shapeName] is not a constructor #1

Closed gary149 closed 5 years ago

gary149 commented 5 years ago

Thanks Alexandre for this, declarative ZDog is awesome :) Some shapes dont work, for example for ZPath or ZBox this error pops:

[Vue warn]: Error in created hook (Promise/async): "TypeError: Zdog[shapeName] is not a constructor"

You can reproduce here: https://codesandbox.io/s/vue-template-vjc7w Some other shapes like ZCone seems to render the wrong shape. Also the peer dependency vue-runtimes-helpers seems required.

AlexandreBonaventure commented 5 years ago

Also the peer dependency vue-runtimes-helpers seems required. This is now fixed in 0.1.0.

Thanks!

As for Zdog[shapeName] error it is fixed via #3 in 0.1.1. You'll have to use ZShape instead of ZPath