2016-01-21 13 views
12

Ho un'app gestita da JSPM che funziona, ma non ricarica automaticamente le modifiche in JSPM Server.Errore server JSPM: si è verificata una modifica a un file all'esterno di SystemJS in carica

Ecco il semplice file index.html:

<!doctype html> 
<html lang="en"> 
<head> 
    <meta charset="utf-8"> 
    <head> 
    <script src="jspm_packages/system.js"></script> 
    <script src="config.js"></script> 
    <script> 
     System.import('./app'); 
    </script> 
    </head> 
</head> 
<body> 
</body> 
</html> 

e il file ./app.js:

import $ from 'jquery'; 

$("body").append("<div>TEST 123</div>"); 

export let __hotReload = true; 

Questo funziona. Tuttavia, se apporto una modifica al file app.js, ottengo:

� Client connected. JSPM watching enabled 
Change detected: app.js 
✅ SystemJS loaded. Initialising ChangeHandler 
� Change to http://127.0.0.1:8080/app.js cannot be handled gracefully: 
� Change occurred to a file outside SystemJS loading 

Que paso? Come posso ottenere il server JSPM per caricare le mie modifiche?

+0

Che modifica hai apportato alla tua app.js? È forse un problema di compilazione? – ManoDestra

+0

@ManoDestra l'ho ricontrollato. Questi sono solo semplici cambiamenti. – mtyson

risposta

Problemi correlati