So I really don’t know what might be going on here. In my theme, I have all of the bootstrap js disabled via the bower.json. However when I view my site I am getting the following in the console: “Uncaught TypeError: $ is not a function” in carousel.js. When debugging, here is the path my browser is giving me for the file in question: localhost/mytheme/wp-content/themes/mytheme/dist/scripts/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/carousel.js.
Now the first problem is this error appears whether or not I have any overrides in my bower.json. In fact, even when I remove bootstrap as a dependency altogether the problem still occurs. This is after running gulp build, gulp --production, etc.
Second problem is that I have no idea what is generating this path, and there is definitely nothing in the dist directory that resembles this.
Has anyone run into similar bugs, or have any idea what might be going on here?