[GH-ISSUE #557] ErrorException in Application.php line 51: file_get_contents(D:\wamp64\www\koel\public/mix-manifest.json): failed to open stream: No such file or directory (View: D:\wamp64\www\koel\resources\views\index.blade.php) #398

Closed
opened 2026-02-26 02:33:05 +03:00 by kerem · 11 comments
Owner

Originally created by @shahidkarimi on GitHub (Mar 10, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/557

ErrorException in Application.php line 51:
file_get_contents(D:\wamp64\www\koel\public/mix-manifest.json): failed to open stream: No such file or directory (View: D:\wamp64\www\koel\resources\views\index.blade.php)

Originally created by @shahidkarimi on GitHub (Mar 10, 2017). Original GitHub issue: https://github.com/koel/koel/issues/557 ErrorException in Application.php line 51: file_get_contents(D:\wamp64\www\koel\public/mix-manifest.json): failed to open stream: No such file or directory (View: D:\wamp64\www\koel\resources\views\index.blade.php)
kerem closed this issue 2026-02-26 02:33:05 +03:00
Author
Owner

@dennisml4 commented on GitHub (Mar 11, 2017):

i have the same issue

<!-- gh-comment-id:285844144 --> @dennisml4 commented on GitHub (Mar 11, 2017): i have the same issue
Author
Owner

@phanan commented on GitHub (Mar 11, 2017):

Please read the docs.

<!-- gh-comment-id:285856463 --> @phanan commented on GitHub (Mar 11, 2017): Please read the docs.
Author
Owner

@mikimaine commented on GitHub (Apr 5, 2017):

I have the same issue but the doc doesn't address it anywhere .

<!-- gh-comment-id:291797924 --> @mikimaine commented on GitHub (Apr 5, 2017): I have the same issue but the doc doesn't address it anywhere .
Author
Owner

@Gounlaf commented on GitHub (Apr 15, 2017):

@mikimaine, @dennisml4, @shahidkarimi

Command koel:init (app/Console/Commands/Init.php#L75) execute yarn install.
You may have this line during install:

Compiling front-end stuff
sh: 1: yarn: not found

Yarn can be installed with your system, or with npm: npm install --global yarn

Documentation (Requirements > Server) mention:

NodeJS latest stable with yarn

Edit: so, just install yarn and execute manually yarn install

<!-- gh-comment-id:294289251 --> @Gounlaf commented on GitHub (Apr 15, 2017): @mikimaine, @dennisml4, @shahidkarimi Command `koel:init` ([app/Console/Commands/Init.php#L75](https://github.com/phanan/koel/blob/v3.6.0/app/Console/Commands/Init.php#L75)) execute `yarn install`. You may have this line during install: > Compiling front-end stuff > sh: 1: yarn: not found Yarn can be installed with your system, or with npm: `npm install --global yarn` Documentation (Requirements > Server) mention: > NodeJS latest stable with yarn Edit: so, just install yarn and execute manually `yarn install`
Author
Owner

@mikimaine commented on GitHub (Apr 15, 2017):

ya when i change my node version to 7 it worked . Thank you.

<!-- gh-comment-id:294304019 --> @mikimaine commented on GitHub (Apr 15, 2017): ya when i change my node version to 7 it worked . Thank you.
Author
Owner

@samdervis commented on GitHub (Dec 25, 2017):

I also had this issue. Seems like mix-manifest.json is not created in yarn production.
So after koel:init i run yarn dev to create the mix-manifest then just do yarn-prod
It then works fine

<!-- gh-comment-id:353850511 --> @samdervis commented on GitHub (Dec 25, 2017): I also had this issue. Seems like `mix-manifest.json` is not created in `yarn production`. So after `koel:init` i run `yarn dev` to create the mix-manifest then just do `yarn-prod` It then works fine
Author
Owner

@pitylee commented on GitHub (Jan 3, 2018):

So far what I did was:

Manually added webpack mixed with:
yarn add webpack-laravel-mix-manifest --dev
And after that I built it with:
yarn example:build

But you can do the same with:
npm i webpack-laravel-mix-manifest --save-dev
And build:
npm run example:build

But yarn package is required by Koel, so this should not be a problem, though if you lyk npm better, than npm init (pun intended)

Still no success, the webpack would not generate the json nor build the assets...

<!-- gh-comment-id:355008468 --> @pitylee commented on GitHub (Jan 3, 2018): So far what I did was: Manually added webpack mixed with: `yarn add webpack-laravel-mix-manifest --dev` And after that I built it with: `yarn example:build` But you can do the same with: `npm i webpack-laravel-mix-manifest --save-dev` And build: `npm run example:build` But yarn package is required by Koel, so this should not be a problem, though if you lyk npm better, than npm init (pun intended) Still no success, the webpack would not generate the json nor build the assets...
Author
Owner

@pitylee commented on GitHub (Jan 3, 2018):

Bump:

So I found the main problem(s):

  • Had to look up if I had enough resources (ram and cpu) for the build to succeed. (killed some ram monsters like mysqld)
  • I had to rebuild with the latest node-sass. 4.7.2 is the latest but the default fits well too (4.5.x)

Rebuilt node-sass with command:
npm rebuild node-sass

This took around ~10 to ~15 minutes but in the end I was able to run:
npm run production

But the php artisan koel:init should be enough aswell as this gives life to the beast. Yaaa!

Many thanks to this node-sass issue and our friend, Google

Bump, don't give up, guys, this thing really deserves a try and a star on the repo.

Thanks, @phanan !

<!-- gh-comment-id:355032827 --> @pitylee commented on GitHub (Jan 3, 2018): Bump: So I found the main problem(s): - Had to look up if I had enough resources (ram and cpu) for the build to succeed. (killed some ram monsters like mysqld) - I had to rebuild with the latest node-sass. 4.7.2 is the latest but the default fits well too (4.5.x) Rebuilt node-sass with command: `npm rebuild node-sass` This took around ~10 to ~15 minutes but in the end I was able to run: `npm run production` But the php artisan koel:init should be enough aswell as this gives life to the beast. Yaaa! Many thanks to [this node-sass issue](https://github.com/sass/node-sass/issues/1764) and our friend, [Google](google.com) Bump, don't give up, guys, this thing really deserves a try and a star on the repo. Thanks, @phanan !
Author
Owner

@gbip commented on GitHub (Aug 24, 2018):

Could you make the "missing yarn" a hard error (aka no success message) during install ?
Thanks !

For FreeBSD users, if yarn fails building, try installing the python2 package. (aka pkg install python2).

<!-- gh-comment-id:415871634 --> @gbip commented on GitHub (Aug 24, 2018): Could you make the "missing yarn" a hard error (aka no success message) during install ? Thanks ! For FreeBSD users, if yarn fails building, try installing the `python2` package. (aka `pkg install python2`).
Author
Owner

@nickian commented on GitHub (Nov 12, 2018):

None of this worked for me. Originally, I was getting the mix-manifest.json error. Now I'm still getting:

File /css/app.css not defined in asset manifest. (View: /var/www/resources/views/index.blade.php)

This app looks so great, but it is a disaster to get working. I had to give up! I wish there were better documentation and that this didn't have so many mysterious dependencies.

<!-- gh-comment-id:438017367 --> @nickian commented on GitHub (Nov 12, 2018): None of this worked for me. Originally, I was getting the mix-manifest.json error. Now I'm still getting: `File /css/app.css not defined in asset manifest. (View: /var/www/resources/views/index.blade.php)` This app looks so great, but it is a disaster to get working. I had to give up! I wish there were better documentation and that this didn't have so many mysterious dependencies.
Author
Owner

@aokitashipro commented on GitHub (Nov 21, 2018):

I got similar error after koel init.
(1/2) ErrorException
file_get_contents(C:\xampp\htdocs\laravel_test\public/mix-manifest.json): failed to open stream: No such file or directory

(2/2) ErrorException
file_get_contents(C:\xampp\htdocs\laravel_test\public/mix-manifest.json): failed to open stream: No such file or directory (View: C:\xampp\htdocs\laravel_test\resources\views\index.blade.php)

<!-- gh-comment-id:440561980 --> @aokitashipro commented on GitHub (Nov 21, 2018): I got similar error after koel init. (1/2) ErrorException file_get_contents(C:\xampp\htdocs\laravel_test\public/mix-manifest.json): failed to open stream: No such file or directory (2/2) ErrorException file_get_contents(C:\xampp\htdocs\laravel_test\public/mix-manifest.json): failed to open stream: No such file or directory (View: C:\xampp\htdocs\laravel_test\resources\views\index.blade.php)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#398
No description provided.