Solving jQuery not found issue with webpack-bootstrap & babel

Recently I was trying out es6 classes with React using Webpack and Babel to build and transpile the code. I got all that working, by switching out the react-loader for babel-loader. I had problems when I added bootstrap into the mix, console was reporting that there was problems locating jQuery (Uncaught ReferenceError: jQuery is not defined). This is because the previous Webpack config I had been using had been using the Webpacks plugin architecture to load jQuery. This is not compatible with the Babel loader that I needed to transpile the es6 classes. I was able to get around this by loading jQuery as a global and referencing it from a cdn.


Popular posts from this blog

Can't resolve DNS Aws

Windows 8.1 on Minnow Board Max

Solving `Empty reply from server` in DotNet Core