axiskafi / angular2-laravel5

Angular 2.0.0 stable release setup with Laravel 5
67 stars 44 forks source link

angular2-laravel5 on xampp #6

Open fryczyk opened 7 years ago

fryczyk commented 7 years ago

Hi I'm newbie. Could you tell how to run this project on XAMPP. Now it's work only with php artisan serve. When I put this to htdocs and make vhosts Laravel work fine but angular just "Loading..."

hugoburguete commented 7 years ago

Go to the console and check if there are any errors

fryczyk commented 7 years ago

Hi In console I've got: GET http://localhost/axiskafi/css/styles.css localhost/:53 GET http://localhost/project/systemjs.config.js localhost/:45 GET http://localhost/project/es6-shim/es6-shim.min.js localhost/:49 GET http://localhost/project/reflect-metadata/Reflect.js localhost/:51 GET http://localhost/project/systemjs/dist/system.src.js localhost/:47 GET http://localhost/project/zone.js/dist/zone.js (index):47 GET http://localhost/project/zone.js/dist/zone.js (index):49 GET http://localhost/project/reflect-metadata/Reflect.js (index):51 GET http://localhost/project/systemjs/dist/system.src.js (index):53 GET http://localhost/project/systemjs.config.js

So when I change path :

` {{ Html::script('es6-shim/es6-shim.min.js') }}

{{ Html::script('zone.js/dist/zone.js') }}

{{ Html::script('reflect-metadata/Reflect.js') }}

{{ Html::script('systemjs/dist/system.src.js') }}

{{ Html::script('systemjs.config.js') }}`   

to example:

{{ Html::script('public/es6-shim/es6-shim.min.js') }}

I've got only one error in console:

GET http://localhost/project/js/main.js 404 (Not Found)

How to fix this?

malutanpetronel commented 7 years ago

I did changed paths in main.js, systemjs.config.js... and app.module.js but finnally arrived at

(index):102 Error: SyntaxError: Unexpected token < at eval () Evaluating http://ang2.dev/public/@angular/platform-browser-dynamic Error loading http://ang2.dev/js/../public/js/main.js