Skip to content
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

leader-line in Vuejs 3 #15

Open
djeetee opened this issue Feb 12, 2023 · 0 comments
Open

leader-line in Vuejs 3 #15

djeetee opened this issue Feb 12, 2023 · 0 comments

Comments

@djeetee
Copy link

djeetee commented Feb 12, 2023

Hey Folks,

Has anyone been able to get this working with Vue?

I'm having one hell of a time trying to get leader-line working in vuejs 3.

I have tried installing it with npm as well as using the js source. Neither one worked.

in the case of the js source, I added the export default { LeaderLine } at the end to get it to load however I get this error:

leader-line.js?t=1676230128857:5185 Uncaught TypeError: Cannot read properties of undefined (reading 'add')
    at leader-line.js?t=1676230128857:5185:49
    at leader-line.js?t=1676230128857:5207:3

using npm, i get a different error upon executing:

        new LeaderLine(document.getElementById('start'),
            document.getElementById('end')
        )

saying start and end are required. Not sure what that means.

I'd love to use this library as well as its sister plain-draggable (which seems to be another source of headaches too) if possible.

I hope you could help.

thanks

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

No branches or pull requests

1 participant