Closed alucard001 closed 4 years ago
I bumped into the same problem, and installing bootstrap manually fixed this.
$ npm install bootstrap
After I got this part working, a UI issue opened up - the dropdown menu for Name -> Logout doesn't respond. Looks like a javascript issue, but no errors show up in the console.
I tried again and succeeded. After installing bootstrap and jquery via npm, you have to require
it in your app.js:
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
require('bootstrap/js/src/index');
window.Vue = require('vue');
To people who got this problem: the default package.json coming from Laravel DID NOT contain the following packages, at least, I did not find below in my package.json.
bootstrap
false
jquery
vue
So you may want to compare your package.json to this repo and see if there are any different.
Hope it helps someone.
First use
$ npm install bootstrap
command. then
@import "../node_modules/bootstrap/scss/bootstrap";
in your styles.scss file. My error fixed from doing this for angular.
npm install bootstrap-sass
Remove node_modules:
$ rm -R node_modules
Install again:
$ yarn install
All should work now
npm install bootstrap-sass Thanks @vipertecpro that is a good solution! If you use 'yarn', let do this:
yarn add bootstrap-sass
I faced this issue. Remove this symbol. ~
// Bootstrap @import "bootstrap/scss/bootstrap";
I got this issue when I imported the file with @import '~bootstrap/scss/bootstrap';
into another file whose extension was .css
instead of .scss
.
Hi
While I am following: Laravel PHP Framework Tutorial - Full Course for Beginners (2019), when I am running
npm run dev
during development, I got the following:But my app.scss is following exactly your code here.
I am not very sure what I am doing it wrong.
I have tried run
npm install
again but there is no new install there.Can you please help?
Thank you very much.