I'm new to Vue and webpack in general, and it's hard for me to figure out how to import things.
I created a new Vue project through vue init
I added bootstrap 4 with yarn add bootstrap@4.0.0-alpha.6
In main.js, I am trying to import bootstrap and jquery:
import Vue from 'vue'; import jQuery from 'jquery'; import bootstrap from 'bootstrap'; import App from './App'; import router from './router';
But I get:
Unprepared bug: Bootstrap JavaScript requires jQuery. jQuery must be enabled before JavaScript Bootstrap.
window.jQuery = window.$ = $;
does not work
Finally, where and how can I download Sass so that it is available for the entire application?
source share