-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
o.default.polylineDecorator is not a function #2
Comments
which vue version are you using? |
Sorry, forgot that important detail. |
Switching from Yarn to NPM seemed to have solved this, though no idea why it did. |
I am having same issues, I don't know why? |
Same here, guys. Using yarn on this case: |
use npm instead of yarn |
不要用cnpm |
Anyone seen this error crop up? Everything was working fine until it wasn't. I haven't upgraded any Leaflet packages, though I recently did update Vue and vue-template-compiler to match each other's version. Everything on my Leaflet map works fine except for the arrowheads that I'm drawing with this polyline decorator. Error is as follows:
[Vue warn]: Error in mounted hook: "TypeError: o.default.polylineDecorator is not a function"
I'm importing this package like so:
import GateArrow from 'vue2-leaflet-polylinedecorator'
and using it here:
Where
paths
is a two pairs of coordinates for a line segment to be the arrow body, andpatterns
is the arrowhead, defined as:The text was updated successfully, but these errors were encountered: