Open adrielwerlich opened 5 years ago
I was tryin to solve like following through these steps: Option #1: Use ProvidePlugin
Add the ProvidePlugin to the plugins array in both build/webpack.dev.conf.js and build/webpack.prod.conf.js so that jQuery becomes globally available to all your modules:
plugins: [
// ...
new webpack.ProvidePlugin({ $: 'jquery', jquery: 'jquery', 'window.jQuery': 'jquery', jQuery: 'jquery' }) ] Option #2: Use Expose Loader module for webpack
As @TremendusApps suggests in his answer, add the Expose Loader package:
npm install expose-loader --save-dev
Use in your entry point main.js like this:
require("expose-loader?$!jquery");
But somethings the error message show´s up again.... I dont know whats the problem with webpack
Hello there. Awesome dashboard. I´m getting some error messages like:
a print
Of course, this is happenning in my local server... Ive tried to search in stackoverflow, but nothing yet.. I´m guessing something related with webpack not finding jquery plugins..