tony19 / polymer-typescript-starter-kit

Polymer Starter Kit w/TypeScript support
Other
4 stars 3 forks source link

Uncaught error at runtime breaks live reload #6

Closed tony19 closed 7 years ago

tony19 commented 7 years ago

It's possible to edit a TypeScript file to import a non-existing file (from a typo), which causes an uncaught error in SystemJS:

system.src.js:123 Uncaught (in promise) Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:8000/src/scripts/my-behavior.ts.js
    Error: XHR error (404 Not Found) loading http://localhost:8000/src/scripts/my-behavior.ts.js
    Error loading http://localhost:8000/src/scripts/my-behavior.ts.js as "scripts/my-behavior.ts" from http://localhost:8000/src/components/my-view2/my-view2.js

This seems to break the BrowserSync connection, as it ignores any subsequent reload requests. The connection is re-established when refreshing the page.

tony19 commented 7 years ago

Looks like the issue resolved itself...not sure which commit got rid of the bug, but seems to correlate with the refactoring of the Gulp scripts.