question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to locate Mix file

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
majamusancommented, Oct 25, 2017

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 });

1reaction
bradenkeithcommented, Feb 7, 2017
mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');

mix.combine([
    'resources/assets/css/sweetalert.css',
    'resources/assets/css/dropzone.css',
], 'public/css/admin-libs.css');

mix.version();

Outputs this in my mix-manifest on a clean install… unable to reproduce your error

{
  "/js/app.js": "/js/app.3083d8e4408efd3d3f1a.js",
  "/css/app.css": "/css/app.c651d46fe02186394040.css",
  "/css/admin-libs.css": "/css/admin-libs.css"
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found