Angular 2 - 404 traceur not found

后端 未结 17 3144
故里飘歌
故里飘歌 2020-12-03 02:34

I\'ve followed the starting guide and expanded a little upon for a previous angular 2 version. I\'ve updated my revision and changed everything accordingly. When I am runnin

17条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 02:58

    The problem is within the system.js I think:

    There is a regex, which is used to detect import-statements:

    var esmRegEx = /(^\s*|[}\);\n]\s*)(import\s*(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s*from\s*['"]|\{)|export\s+\*\s+from\s+["']|export\s*(\{|default|function|class|var|const|let|async\s+function))/; 
    

    This regex will detect import-statements within multiline-comments and cause this horrible error. I have opened an issue here:

    https://github.com/systemjs/systemjs/issues/1408

提交回复
热议问题