Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Leader line in VueJS? #11

Closed
onx2 opened this issue Mar 26, 2018 · 2 comments
Closed

Leader line in VueJS? #11

onx2 opened this issue Mar 26, 2018 · 2 comments

Comments

@onx2
Copy link

onx2 commented Mar 26, 2018

I installed leader line via npm, then imported and used it in my main.js file; however, when I try to then draw a line between two elements after the app has been mounted I receive this error:
[Vue warn]: Error in mounted hook: "TypeError: __WEBPACK_IMPORTED_MODULE_1__assets_leaderLine_js__.default is not a constructor"

main.js file has:

import LeaderLine from 'leader-line'
Vue.use(LeaderLine)
@anseki
Copy link
Owner

anseki commented Mar 26, 2018

Hi @feelslike1929, thank you for the comment.
Try to load it via <script> instead of import.
https://anseki.github.io/leader-line/#usage

@anseki
Copy link
Owner

anseki commented Apr 1, 2018

No reply came, and I close this issue.

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