This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 416
How to import/require/src? #74
Comments
So i got this boy up and running with Vue, you just have to add at the then run: |
Hi @xeroxstar, thank you for the comment. The best and easy way to import it is using Webpack and At least, you should use |
Also, if you added the |
Thanks, by the way, this is an amazing module. |
😄 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am not able to start going with this module, i tried everything to import it but nothing works:
i run
npm install leader-line
After i try to import it and getting errors from every angle, i am using Vue framework and not sure what i am missing here:
<script src="'../../node_modules/leader-line/leader-line.min.js"></script>import LeaderLine from '../../node_modules/leader-line/leader-line.min.js'
Error: node_modules_leader_line_leader_line_min_js__WEBPACK_IMPORTED_MODULE_1_.LeaderLine is not a constructor
import { LeaderLine } from '../../node_modules/leader-line/leader-line.min.js';
Error: Uncaught TypeError: LeaderLine is not a constructor
Error:Uncaught ReferenceError: LeaderLine is not defined
The text was updated successfully, but these errors were encountered: