Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Problem with bootstrap #182

Closed
sam123sam123 opened this issue Feb 12, 2018 · 2 comments
Closed

Problem with bootstrap #182

sam123sam123 opened this issue Feb 12, 2018 · 2 comments

Comments

@sam123sam123
Copy link

sam123sam123 commented Feb 12, 2018

This probably has something to do with bootstrap v4 and/or laravel 5.5. I also installed laracogs starter pack. Pretty sure I followed the instructions correctly.

VM1429 app.js:1 Uncaught Error: Module build failed: ModuleBuildError: Module build failed: 
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
^
      File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap.
Parent style sheet: stdin
      in /var/www/html/laracogs1/resources/assets/sass/app.scss (line 6, column 1)
    at runLoaders (/var/www/html/laracogs1/node_modules/webpack/lib/NormalModule.js:195:19)
    at /var/www/html/laracogs1/node_modules/loader-runner/lib/LoaderRunner.js:364:11

That bootstrap-sass directory does not exist. There does not appear to be a boostrap-sass for v4.

Running npm install bootstrap-sass seems to fix it but that is installing v3 of bootstrap-sass. It looks like sass is built into v4 so I manually updated the related link in /resources/assets/'sass/app.scss. That gets rid of the npm run dev compile error but it does not seem to be working properly. A bunch of styling seems to be missing.

@quasiperfect
Copy link

same here

@mlantz
Copy link
Member

mlantz commented Apr 1, 2018

That was a problem with v3 vs v4 for bootstrap, the latest version of Builder now use Bootstrap 4 I only updated that as of 2.3.4, further fixes were implemented in 2.4

@mlantz mlantz closed this as completed Apr 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants