Unable to locate Mix file
See original GitHub issueHi,
mix.sass('resources/assets/sass/admin.scss', 'public/css');
mix.js('resources/assets/js/admin.js', 'public/js/admin.js');
mix.combine([
'node_modules/sweetalert/dist/sweetalert.css',
'node_modules/dropzone/dist/dropzone.css',
], 'public/css/admin-libs.css');
mix.version();
In public/css
it creates:
admin.27ae0532d8ea9cffcd05.css
admin-libs.css
In public/js
it creates:
- admin.5edd8b3123ae4b59688d.js
mix-manifest.json
is:
{
"/js/admin.js": "/js/admin.5edd8b3123ae4b59688d.js",
"/css/admin.css": "/css/admin.27ae0532d8ea9cffcd05.css"
}
Not clue about admin-libs.css
see ref: https://github.com/JeffreyWay/laravel-mix/issues/324
Then:
<link rel="stylesheet" href="{{ mix('css/admin.css') }}">
<link rel="stylesheet" href="{{ mix('css/admin-libs.css') }}">
ErrorException in helpers.php line 578:
Unable to locate Mix file: /css/admin-libs.css. Please check your webpack.mix.js output paths and try again.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9
Top Results From Across the Web
Uncaught Exception: Unable to locate Mix file - Stack Overflow
You've built your assets by running npm run dev or similar commands. And then the manifest file doesn't contain those assets mapping. And...
Read more >Unable to locate Mix file: /js/app.js. - Laracasts
Solution (TL;DR) ... 'mix_url' => env('MIX_ASSET_URL', 'localhost'),. With your mix_url config option set in your app.php file, you should now be able to ......
Read more >Unable to locate Mix file · Issue #326 - GitHub
I think the issue is before the mix() call, because your mix-manifest does not include admin-libs and this is what mix() will utilize...
Read more >unable to locate mix file | The AI Search Engine You Control
Exception: Unable to locate Mix file: /assets/css/test. scss. Solution Always make sure to remove the link to the file that has been removed....
Read more >[Solved]-Laravel webpack unable to locate Mix file-Vue.js
To explain, the second parameter points to where the mix-manifest.json file exists. ... Your problem is that you are adding the root folder...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was having a similar problem though mine was involving a symlink problem and I found adding fixed it right up
mix.options({ processCssUrls: false });
Outputs this in my mix-manifest on a clean install… unable to reproduce your error