Skip to content

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

@ishanskya

Description

@ishanskya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions