question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bootstrap 4 compile issue

See original GitHub issue
  • Laravel Mix Version: ±- axios@0.16.2 ±- bootstrap@4.0.0-alpha.6 extraneous ±- bootstrap-sass@3.3.7 ±- cross-env@5.0.1 ±- jquery@3.2.1 ±- laravel-mix@1.3.0 ±- lodash@4.17.4 `-- vue@2.4.2

  • Node Version (node -v): v6.10.2

  • NPM Version (npm -v): 3.10.10

  • OS: Laravel Homestead on windows host

Description:

Bootstrap 4.0.0-alpha.6 fails to compile on newest mix version, it works on laravel-mix@0.12.1

Steps To Reproduce:

  1. Create a new laravel project
  2. Run npm install
  3. Download bootstrap using npm install bootstrap@4.0.0-alpha.6
  4. Remove variables from app.scss and modify the default bootstrap import to @import “node_modules/bootstrap/scss/bootstrap.scss”
  5. Run npm run dev

NPM LOG

Module build failed: ModuleBuildError: Module build failed: TypeError: Path must be a string. Received undefined at assertPath (path.js:7:11) at Object.resolve (path.js:186:7) at eachParent (C:\Users\Nathan\Documents\Homestead\theme\node_modules\browserslist\index.js:65:18) at getStat (C:\Users\Nathan\Documents\Homestead\theme\node_modules\browserslist\index.js:79:12) at browserslist (C:\Users\Nathan\Documents\Homestead\theme\node_modules\browserslist\index.js:188:15) at Browsers.parse (C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\browsers.js:61:16) at new Browsers (C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\browsers.js:52:30) at Supports.prefixer (C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\supports.js:48:24) at Supports.prefixed (C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\supports.js:93:29) at C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\supports.js:316:39 at Array.map (native) at Supports.add (C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\supports.js:314:22) at Supports.process (C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\supports.js:339:20) at C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\processor.js:43:37 at C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\container.js:292:28 at C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\container.js:144:26 at Root.each (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\container.js:110:22) at Root.walk (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\container.js:143:21) at Root.walkAtRules (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\container.js:290:25) at Processor.add (C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\processor.js:32:13) at plugin (C:\Users\Nathan\Documents\Homestead\theme\node_modules\autoprefixer\lib\autoprefixer.js:87:32) at LazyResult.run (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\lazy-result.js:270:20) at LazyResult.asyncTick (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\lazy-result.js:185:32) at processing.Promise.then._this2.processed (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\lazy-result.js:224:20) at LazyResult.async (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\lazy-result.js:221:27) at LazyResult.then (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss\lib\lazy-result.js:127:21) at Promise.resolve.then.then (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss-loader\lib\index.js:139:8) at runLoaders (C:\Users\Nathan\Documents\Homestead\theme\node_modules\webpack\lib\NormalModule.js:194:19) at C:\Users\Nathan\Documents\Homestead\theme\node_modules\loader-runner\lib\LoaderRunner.js:364:11 at C:\Users\Nathan\Documents\Homestead\theme\node_modules\loader-runner\lib\LoaderRunner.js:230:18 at context.callback (C:\Users\Nathan\Documents\Homestead\theme\node_modules\loader-runner\lib\LoaderRunner.js:111:13) at Promise.resolve.then.then.catch (C:\Users\Nathan\Documents\Homestead\theme\node_modules\postcss-loader\lib\index.js:176:71)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
dwightwatsoncommented, Jul 23, 2017

browserslist v2.2.2 has been released which fixes this issue.

0reactions
JeffreyWaycommented, Jul 25, 2017

Yeah just did a test on a fresh install, and everything compiled properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build tools
Learn how to use Bootstrap's included npm scripts to build our documentation, compile source code, run tests, and more.
Read more >
CSS Compile Error
Hello, I am trying to set the order of SCSS files in my main SCSS file. I'd like to compile in the following...
Read more >
Bootstrap 4 compile issue · Issue #1034 · laravel-mix/ ...
Create a new laravel project; Run npm install; Download bootstrap using npm install bootstrap@4.0.0-alpha.6; Remove variables from app.scss and ...
Read more >
Compile error when importing bootstrap file into component
Your sass preprocessor cannot handle what you are trying to do, thus throwing the error during the compilation time.
Read more >
Master the latest version of Bootstrap 4 to build highly ...
Bootstrap 4 is a free CSS and JavaScript framework that allows developers to rapidly build responsive web interfaces. This book will help you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found