jadjoubran / laravel5-angular-material-starter

Get started with Laravel 5.3 and AngularJS (material)
https://laravel-angular.readme.io/
MIT License
1.66k stars 400 forks source link

FatalErrorException due to the command gulp && gulp watch #456

Closed akinolu52 closed 7 years ago

akinolu52 commented 7 years ago

$ php artisan serve ←[32mLaravel development server started on http://localhost:8000/←[39m [Wed Jan 4 06:34:11 2017] PHP Warning: Uncaught ErrorException: require(C:\xampp\htdocs\laravel5-angular-material-starter\public\css/critical.css): failed to open stream: No such file or directory in C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php:17 Stack trace:

0 C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php(17): Illuminate\Foundation\Bootstrap\HandleExceptions->han

dleError(2, 'require(C:\xamp...', 'C:\xampp\htdocs...', 17, Array)

1 C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php(17): require()

2 C:\xampp\htdocs\laravel5-angular-material-starter\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(42): include('C:\xampp\htdocs...')

3 C:\xampp\htdocs\laravel5-angular-material-starter\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('C

:\x in C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php on line 17 [Wed Jan 4 06:34:11 2017] PHP Fatal error: Illuminate\View\Engines\PhpEngine::main(): Failed opening required 'C:\xampp\htdocs\laravel5-angular-material-starter\public\css/critic al.css' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php on line 17 [Wed Jan 4 06:34:12 2017] 127.0.0.1:52681 Invalid request (Unexpected EOF)

and when i view the page i got:

FatalErrorException in 000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php line 17: Illuminate\View\Engines\PhpEngine::main(): Failed opening required 'C:\xampp\htdocs\laravel5-angular-material-starter\public\css/critical.css' (include_path='C:\xampp\php\PEAR')

flick36 commented 7 years ago

did you run bower install?

akinolu52 commented 7 years ago

yes i have tried that and the only error i got after running bower install is: ECONFLICT Unable to find suitable version for angular

and after trying to start the laravel server i got this on the cmd: $ php artisan serve ←[32mLaravel development server started on http://localhost:8000/←[39m [Thu Jan 5 22:17:42 2017] PHP Warning: Uncaught ErrorException: require(C:\xampp\htdocs\laravel5-angular-material-starter\public\css/critical.css): failed to open stream: No such file or directory in C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php:17 Stack trace:

0 C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php(17): Illuminate\Foundation\Bootstrap\HandleExceptions->han

dleError(2, 'require(C:\xamp...', 'C:\xampp\htdocs...', 17, Array)

1 C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php(17): require()

2 C:\xampp\htdocs\laravel5-angular-material-starter\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(42): include('C:\xampp\htdocs...')

3 C:\xampp\htdocs\laravel5-angular-material-starter\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('C

:\x in C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php on line 17 [Thu Jan 5 22:17:42 2017] PHP Fatal error: Illuminate\View\Engines\PhpEngine::main(): Failed opening required 'C:\xampp\htdocs\laravel5-angular-material-starter\public\css/critic al.css' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\laravel5-angular-material-starter\storage\framework\views\000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php on line 17

[Thu Jan 5 22:17:43 2017] 127.0.0.1:55112 Invalid request (Unexpected EOF) [Thu Jan 5 22:17:43 2017] 127.0.0.1:55113 Invalid request (Unexpected EOF) [Thu Jan 5 22:17:43 2017] 127.0.0.1:55114 Invalid request (Unexpected EOF) [Thu Jan 5 22:17:43 2017] 127.0.0.1:55115 Invalid request (Unexpected EOF)

and the page error is: FatalErrorException in 000c94a4c473ad0b4efede1bf538ca6b3f09e6d3.php line 17: Illuminate\View\Engines\PhpEngine::main(): Failed opening required 'C:\xampp\htdocs\laravel5-angular-material-starter\public\css/critical.css' (include_path='C:\xampp\php\PEAR')

akinolu52 commented 7 years ago

pls can someone show me how his/her bower.json file looks like

and what version of angular is this laravel5-angular-material-starter using?

flick36 commented 7 years ago

You show yours, i'm pretty sure you are not letting bower install finish, therefore gulp can't compile propertly...

akinolu52 commented 7 years ago

bower.json

{
  "name": "laravel5-angular-material-starter",
  "authors": [
    "Jad Joubran <jad@jadjoubran.com>"
  ],
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "angular": "~1.5",
    "angular-ui-router": "~1.0.0-alpha.3",
    "ngstorage": "~0.3.10",
    "angular-material": "~1.0.8",
    "restangular": "~1.5.2",
    "angular-loading-bar": "~0.9.0",
    "satellizer": "^0.14.0"
  }
}
flick36 commented 7 years ago

Oops, sorry somehow i miss your response, can you post a screenshot of the error? is it something like this? https://github.com/jadjoubran/laravel5-angular-material-starter/issues/452

jadjoubran commented 7 years ago

Hi @akinolu52 When you're asked about a resolution, did you choose a specific version of Angular? You should choose one that makes sense and prefix it with ! to persist that in your bower.json

Blair2004 commented 7 years ago

Well this issue hasn't been fixed ?