The manifest-json file exist in /public/manifest-json.js, but application shows the error like
The Mix manifest does not exist. (View: >/media/Disk2/project1/resources/views/projects/assets.blade.php)
In my resources/views/projects/assets.blade.php file,
<link rel="stylesheet" href="{{ mix('styles/style.scss', 'pc') }}" media="screen,print">
The style.scss file located in resources/assets/pc/styles/ folder
And in the webpack.mix.pc.js
const { mix } = require('laravel-mix');
mix.webpackConfig({
resolve: {
modules: [
path.resolve('./resources/assets'),
path.resolve('./node_modules')
]
}
})
mix.setPublicPath('public/pc');
mix.js('resources/assets/pc/scripts/orgs.js', 'scripts')
.
.
.
.extract([
'babel-polyfill',
'vue',
'axios',
'vue-router',
'qs',
'intersection-observer',
'element-ui',
'twemoji'
])
.sass('resources/assets/pc/styles/style.scss', 'styles');
Laravel Framework version : 5.6.40
AND the same project worked on windows machine,only Linux machine has the error
I tried the following methods but none of them worked to me.
npm install laravel-mix@latest --save-dev
php artisan vendor:publish --tag=telescope-assets --force
npm install & npm run dev