I am working with Webpack 2 after migrating from Webpack 1. Some of my jquery plugins stop working.
I am getting the following error when using materialize-css package:
TypeError: $(...).parallax is not a function
It did worked before.
The way I was using it was:
attached(){
$('.parallax').parallax();
$('body').addClass('user-background');
}
detached(){
$('body').removeClass('user-background');
}
I successfuly fixed that. The problem was the latest version of jquery@3.1.1 / hammer included in the newest aurelia-skeleton which is not working with materialize-css and its legacy jquery plugins.