Closed malmr closed 5 years ago
Same problem here. Thanks in advance
Have you tried restarting the dev server? Does the use of 'jquery' without the '$' works?
Here they say that you also need to put this in your index.js
import $ from 'jquery';
window.jQuery = $; window.$ = $;
Thank you @sandoche. With this config im getting following error: window is not defined But this can simply be fixed by adjusting eslintrc.js:
const config = {
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true,
"jasmine": true
},
};
Hey,
thank you very much for your helpful boilerplate. Im facing a problem when I try to use jQuery in the
navigation.html
file, the console outputsI installed jQuery with
npm i jquery --save
. Then I adjusted theconfig/webpack.common.js
by adding:I also tried to use jQuery in the
index.js
file, but resulting in the same error. What am I missing? Thanks in advance!