angular-seed: WebStorm (v2.3.1): Live reload after file change (html) does not work. SyntaxError: Unexpected token < in JSON at position 0

possible bug ? Windows 7, npm 4.0.1, node v6.8.1, TypeScript 2.0.10

Initial seed, nothing has been changed. Work-around here does not work.

That’s the Chrome Console:

webstorm_2 3 1_live_reload

VM661:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at http://localhost:5555/app/system-config.js:1:20(anonymous function) @ system-config.ts:2

    System.config(JSON.parse('<%= SYSTEM_CONFIG_DEV %>'));
    //# sourceMappingURL=system-config.js.map

(index):48 (SystemJS) Unexpected token <
	SyntaxError: Unexpected token <
	    at eval (<anonymous>)
	Evaluating http://localhost:5555/app/main
	Error loading http://localhost:5555/app/main Not expecting this error? Report it at https://github.com/mgechev/angular-seed/issues

As already mentioned here safe-write is activated:

webstorm_safe_write

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 26 (7 by maintainers)

Most upvoted comments

issue is resolved by deleting js files from src