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

using multi select with webpack( vendor.js) loki is not defined #111

Open
ishanskya opened this issue Oct 20, 2017 · 1 comment
Open

using multi select with webpack( vendor.js) loki is not defined #111

ishanskya opened this issue Oct 20, 2017 · 1 comment

Comments

@ishanskya
Copy link

Hello
The multi select directive was throwing below exception because it can't find the lokijs reference.
ReferenceError: loki is not defined
at new Engine (eval at ../node_modules/angular-multi-select/dist/prod/angular-multi-select.js (vendor.bundle.js:862), :830:17)
at Object.link (eval at ../node_modules/angular-multi-select/dist/prod/angular-multi-select.js (vendor.bundle.js:862), :2402:15)
at eval (eval at ../node_modules/angular/angular.js (vendor.bundle.js:890), :1346:18)
at eval (eval at ../node_modules/angular/angular.js (vendor.bundle.js:890), :10420:44)

i managed to fix the issue by adding
var loki = require('lokijs')

is there a way around this issue? if not can you release a patch for this
Thanks

@Russelldan554
Copy link

added this to our index.html page instead of adding a require and installing it. This is also in the docs here: http://alexandernst.github.io/angular-multi-select/#/getting-started

<script src="https://cdnjs.cloudflare.com/ajax/libs/lokijs/1.3.16/lokijs.min.js"></script>

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

2 participants