jadjoubran / laravel5-angular-material-starter

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

Bug Installation L5AMS version 3.4 #500

Closed fajrinase closed 6 years ago

fajrinase commented 6 years ago

After installation L5AMS version 3.4

composer create-project jadjoubran/laravel5-angular-material-starter --prefer-dist cd laravel5-angular-material-starter npm install -g gulp bower npm install bower install

fix database credentials in .env

php artisan migrate gulp

gulp && gulp watch

and i'm running php artisan serve localhots:8000 Bug :

  1. i can'nt see header and footer show...
  2. i get error in console browser:

index.modules.js?0f2a:3 Uncaught ReferenceError: angular is not defined at eval (eval at (final-566532fce3.js:100), :3:1) at Object. (final-566532fce3.js:100) at webpack_require (final-566532fce3.js:20) at eval (eval at (final-566532fce3.js:268), :3:1) at Object. (final-566532fce3.js:268) at webpack_require (final-566532fce3.js:20) at final-566532fce3.js:64 at final-566532fce3.js:67

This Example view : browser

What can i do for fix the bug?

jadjoubran commented 6 years ago

Hi @fajrinase I think the problem is that when you ran bower install you did not choose a resolution for angular Try running bower install again and checkout this related issue here

fajrinase commented 6 years ago

I have run bower install and i get error :

$ bower install
bower angular-material#~1.0.8   cached https://github.com/angular/bower-material                                                                                                                                                 .git#1.0.9
bower angular-material#~1.0.8 validate 1.0.9 against https://github.com/angular/                                                                                                                                                 bower-material.git#~1.0.8
bower angular#~1.5              cached https://github.com/angular/bower-angular.                                                                                                                                                 git#1.5.11
bower angular#~1.5            validate 1.5.11 against https://github.com/angular                                                                                                                                                 /bower-angular.git#~1.5
bower angular-ui-router#~1.0.0-alpha.3           cached https://github.com/angul                                                                                                                                                 ar-ui/angular-ui-router-bower.git#1.0.10
bower angular-ui-router#~1.0.0-alpha.3         validate 1.0.10 against https://g                                                                                                                                                 ithub.com/angular-ui/angular-ui-router-bower.git#~1.0.0-alpha.3
bower angular-loading-bar#~0.9.0                 cached https://github.com/chief                                                                                                                                                 fancypants/angular-loading-bar.git#0.9.0
bower angular-loading-bar#~0.9.0               validate 0.9.0 against https://gi                                                                                                                                                 thub.com/chieffancypants/angular-loading-bar.git#~0.9.0
bower satellizer#^0.14.0                         cached https://github.com/sahat                                                                                                                                                 /satellizer.git#0.14.1
bower satellizer#^0.14.0                       validate 0.14.1 against https://g                                                                                                                                                 ithub.com/sahat/satellizer.git#^0.14.0
bower restangular#~1.5.2                         cached https://github.com/mgont                                                                                                                                                 o/restangular.git#1.5.2
bower restangular#~1.5.2                       validate 1.5.2 against https://gi                                                                                                                                                 thub.com/mgonto/restangular.git#~1.5.2
bower ngstorage#~0.3.10                          cached https://github.com/gskle                                                                                                                                                 e/ngStorage.git#0.3.11
bower ngstorage#~0.3.10                        validate 0.3.11 against https://g                                                                                                                                                 ithub.com/gsklee/ngStorage.git#~0.3.10
bower angular#>= 1.2.0                           cached https://github.com/angul                                                                                                                                                 ar/bower-angular.git#1.6.6
bower angular#>= 1.2.0                         validate 1.6.6 against https://gi                                                                                                                                                 thub.com/angular/bower-angular.git#>= 1.2.0
bower angular#>=1.3.x                            cached https://github.com/angul                                                                                                                                                 ar/bower-angular.git#1.6.6
bower angular#>=1.3.x                          validate 1.6.6 against https://gi                                                                                                                                                 thub.com/angular/bower-angular.git#>=1.3.x
bower angular#^1.2.9                             cached https://github.com/angul                                                                                                                                                 ar/bower-angular.git#1.6.6
bower angular#^1.2.9                           validate 1.6.6 against https://gi                                                                                                                                                 thub.com/angular/bower-angular.git#^1.2.9
bower lodash#>=1.3.0                             cached https://github.com/lodas                                                                                                                                                 h/lodash.git#4.17.4
bower lodash#>=1.3.0                           validate 4.17.4 against https://g                                                                                                                                                 ithub.com/lodash/lodash.git#>=1.3.0
bower angular#>=1.0.8                            cached https://github.com/angul                                                                                                                                                 ar/bower-angular.git#1.6.6
bower angular#>=1.0.8                          validate 1.6.6 against https://gi                                                                                                                                                 thub.com/angular/bower-angular.git#>=1.0.8
bower angular-aria#^1.4.8                        cached https://github.com/angular/bower-angular-aria.gi                                                                                                                         t#1.6.6
bower angular-aria#^1.4.8                      validate 1.6.6 against https://github.com/angular/bower-a                                                                                                                         ngular-aria.git#^1.4.8
bower angular-animate#^1.4.8                     cached https://github.com/angular/bower-angular-animate                                                                                                                         .git#1.6.6
bower angular-animate#^1.4.8                   validate 1.6.6 against https://github.com/angular/bower-a                                                                                                                         ngular-animate.git#^1.4.8
bower angular-messages#^1.4.8                    cached https://github.com/angular/bower-angular-message                                                                                                                         s.git#1.6.6
bower angular-messages#^1.4.8                  validate 1.6.6 against https://github.com/angular/bower-a                                                                                                                         ngular-messages.git#^1.4.8
bower                                         ECONFLICT Unable to find suitable version for angular

U can help me?

jadjoubran commented 6 years ago

Yes sure, at the end, you need to resolve and choose this version of Angular: 1.6.5

maiziheimei commented 6 years ago

yes!!!! They did solve all my problems regarding to installation. I wish the following note will be helpful to the others.

  1. when "bower install", please choose and type in "!2" for "1.6.6" for Angular
  2. user has to create a empty database named "laravel_angular", then after editing the ".env" file, then it can migrate the tables successfully.

Then, everything is fine, the demo starts correctly! Thank you Jadoubran!!

Have a nice weekend!