Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2491 connectés 

  FORUM HardWare.fr
  Programmation
  Javascript/Node.js

  [Angular4] GET http://localhost:4200/app 404 (Not Found)

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Angular4] GET http://localhost:4200/app 404 (Not Found)

n°2307169
Combi_A_Ve​ndre
Posté le 31-10-2017 à 17:36:33  profilanswer
 

Bonjour,
 
Sur une application Angular4 (ma première), le composant se lance bien, mais la console affiche un message GET http://localhost:4200/app 404 (Not Found)
J'ai essayé pleins de trucs et je ne comprends pas d'où cela peut bien venir.
L'erreur est provoquée par "System.import('app')" puis "bootstrap();" dans https://unpkg.com/systemjs@0.19.31/dist/system.src.js
 
Dans le index.html à la racine du projet :

Code :
  1. <body>
  2.     [...]
  3.    <my-app>
  4.     loading...
  5.   </my-app>
  6.   </body>


 
Dans /src/app/app.component.ts :

Code :
  1. import { Component } from '@angular/core';
  2. @Component({
  3.   selector: 'my-app',
  4.   templateUrl: './app.component.html',
  5.   styleUrls: ['./app.component.css']
  6. })
  7. export class AppComponent {
  8.  
  9. }


 
Quelqu'un pourrait-il me mettre sur la voie?
 
Merci à tous,
vw.


---------------
The best way to accelerate a computer running windows is at 9.8m.s-2
mood
Publicité
Posté le 31-10-2017 à 17:36:33  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Javascript/Node.js

  [Angular4] GET http://localhost:4200/app 404 (Not Found)

 

Sujets relatifs
URL sans le GET[Résolu][GTK]Utiliser la fonction Get_text
Faire un NOT IN en shellThe '''Get_Line''' mystery
[JQUERY]Problème requête ajax en GET via PHPDo Not Track - How to ?
[Resolu]Get_line en début de programme[Resolu]Basics: Get
erreur php génère 404 et non inscription avec MLM[PHP] Url Rewriting et passage de variables GET
Plus de sujets relatifs à : [Angular4] GET http://localhost:4200/app 404 (Not Found)


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR