Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jlucia's avatar

Yarn run production issues

I have strong feeling this is a bootstrap issue. But I am getting errors on a stock install of Laravel 6 with UI when I do the basic steps and then run yarn run production.

Steps are as follows:

laravel new testapp

composer require laravel/ui

php artisan ui bootstrap

php artisan ui vue

yarn install

yarn run production

 ERROR  Failed to compile with 2 errors                                                                                                           10:20:29 AM

 error  in ./resources/sass/app.scss

Syntax Error: ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js):
SyntaxError

(259:4) Unclosed block

  257 | 
  258 |   .navbar-toggler-icon {
> 259 |     background-image: escape-svg($navbar-light-toggler-icon-bg);
      |    ^
  260 |   }
  261 | 


 error  in ./resources/sass/app.scss

Syntax Error: SyntaxError

(259:4) Unclosed block

  257 | 
  258 |   .navbar-toggler-icon {
> 259 |     background-image: escape-svg($navbar-light-toggler-icon-bg);
      |    ^
  260 |   }
  261 | 



 @ ./resources/sass/app.scss 2:14-253

 2 assets

Not sure if I am missing a step. Also yarn run dev seems to work fine.

0 likes
1 reply

Please or to participate in this conversation.