Having error while using laravel-mix in mix.sass(); -


i'm experiencing error. can me this. using laravel-mix

mix.sass('resources/assets/sass/main.scss', 'public/css/app.css'); 

issue here :

 error  failed compile 2 errors                                                                                                                                                                                             9:38:15  error  in ./resources/assets/sass/main.scss  module build failed: @import "node_modules/bulma/sass/utilities/intial-variables.sass"; ^       file import not found or unreadable: node_modules/bulma/sass/utilities/intial-variables.sass. parent style sheet: stdin    error  in ./resources/assets/sass/main.scss module build failed: modulebuilderror: module build failed: @import "node_modules/bulma/sass/utilities/intial-variables.sass"; 

i'm not used using sass, requirement me, can save time in customizing app's , feel. these customization.

// fonts @import url('https://fonts.googleapis.com/css?family=open+sans|roboto+slab');  @import "node_modules/bulma/sass/utilities/intial-variables.sass";  @import 'variables.scss'; @import 'node_modules/bulma.sass'; 

variables.scss

$edgewater : #c0dfd9 ; $green-white: #e9ece5; $submarine: #b3c2bf ; $tuatara : #3b3a36 ;   $body-background : $submarine ; $primary  : $edgewater ; $primary-invert : $tuatara; $family-serif : 'roboto slab', 'open sans' , 'serif' ;   $text : #tuatara; $text-light : $green-white ; $family-primary : $family-serif ; 

try this:

@import "../../../node_modules/bulma/sass/utilities/intial-variables.sass";

your "import" should relative path "main.scss" file.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -