Google Chrome Canary版本54.0.2830.0未加载类型脚本来源

时间:2016-08-17 03:11:18

标签: google-chrome-devtools typescript1.8

我使用的是Google Chrome canary版本54.0.2830.0。打字稿文件在那里,但那些没有加载代码进行调试。

enter image description here

1 个答案:

答案 0 :(得分:0)

在这里发布答案,以便可以帮助他人。 我使用的是visual studio Web API项目,项目设置不允许客户端访问静态文件。由于哪个chrome无法加载Typescript文件和映射文件。 为了解决这个问题,我必须在我的web.config文件中添加以下行以允许状态内容。

<system.webServer>
    <staticContent>
      <mimeMap fileExtension=".ts" mimeType="application/x-typescript" />
    </staticContent>
</system.webServer>
相关问题