I am getting the following error while importing css files in my project I created using Vue js laravel.
@import '~node_modules/bootstrap/scss/functions';
^
Can't find stylesheet to import.
my webpack.mix.js:
mix.webpackConfig({
resolve: {
extensions: ['.js', '.vue'],
alias: {
'@' :__dirname + '/resources',
'@views' :__dirname + '/resources/js/views',
'@services' :__dirname + '/resources/js/services',
'@images' :__dirname + '/resources/images',
'@audio' :__dirname + '/resources/audio',
'@store' : __dirname + '/resources/js/store',
'@mixins': __dirname + '/resources/js/mixins',
}}
Lines like ~ node_modules / bootstrap / scss / functions do not work. I have to give the full path in my hand one by one, I could not solve the problem. I think it's about Sass loader, but I'm not sure.