I`ll trying to install the JS plugin for filtering MixItUp
I added this package via webpack (
yarn add mixitup), and add to the main.js
import mixitup from 'mixitup';
When I init plugin with the code in common.js route:
var mixer = mixitup(containerEl);
i got the error:
error 'mixitup' is defined but never used no-unused-vars
But plugin works, when i run the init code from ‘main.js’ directly, or add
import mixitup from 'mixitup'; to common.js.
Anybody can help how to init this plugin corectly?