简体   繁体   English

Microsoft EDGE使用打字稿文件报告XHR HTTP404

[英]Microsoft EDGE reports XHR HTTP404 with typescript file

When I debug a Typescript web-application from Visual Studio 2015, using the Microsoft EDGE browser it reports the following; 当我从Visual Studio 2015调试Typescript Web应用程序时,使用Microsoft EDGE浏览器将报告以下内容;

HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
(XHR): GET - http://localhost:2543/scripts/Helpers/jsontable.ts

I have a jsontable.ts file in my project, but it is NOT located under scripts . 我的项目中有一个jsontable.ts文件,但它jsontable.ts scripts下。 I have also done a full text-search in my solution, and haven't found other references to 'jsontable.ts' other than in the _references.ts file which I have now removed. 我还在解决方案中进行了全文搜索,除了在_references.ts文件中没有找到对“ jsontable.ts”的其他引用外,我现在已经删除了该引用。 The problem is still there. 问题仍然存在。 Other browsers doesn't report this error in the F12 network-pane (tested with Internet Explorer 11, Chrome, Opera and FireFox). 其他浏览器在F12网络窗格中未报告此错误(已通过Internet Explorer 11,Chrome,Opera和FireFox测试)。 I know for sure I don't send this request myself from other states in my application. 我知道我自己不会从应用程序中的其他州发送此请求。 Has anyone else experienced this. 有没有其他人经历过。 Is there any fix? 有没有解决办法?

It's probably sourceMaps. 可能是sourceMaps。 Turn off that option in your tsconfig.json file. tsconfig.json文件中关闭该选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM