Skip to content

Trying to install and use through NPM and Webpack #114

@7ochem

Description

@7ochem

I'm trying to install and use jquery.maphilight through NPM and Webpack.

I'm requiring jQuery and maphilight in my package.json.

In my js file I do:

var jQuery = require("jquery");
require('maphilight');

But then $('.mymap').maphilight() doesn't work.

I tried to find out what's going on here. I found that typeof $.fn.maphilight === 'function' is false. I also found that the jQuery object that is being passed to the maphilight factory is not the same object as my jQuery object in my javascript file.

How can I get maphilight to work within my setup?

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