Node.js WebStorm 7-缺少sourcemaps`无法加载资源:服务器响应状态为404(未找到)`

Node.js WebStorm 7-缺少sourcemaps`无法加载资源:服务器响应状态为404(未找到)`,node.js,gruntjs,yeoman,webstorm,source-maps,Node.js,Gruntjs,Yeoman,Webstorm,Source Maps,使用WebStorm 7.0.1运行yeoman angular generator grunt服务器时抛出: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/jquery/jquery.js.map:0 Failed to load resource: the server responded wi

使用WebStorm 7.0.1运行yeoman angular generator grunt服务器时抛出:

Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/jquery/jquery.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/angular/angular.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-affix.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-alert.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-dropdown.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-tooltip.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-modal.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-transition.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-button.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-popover.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://www.google-analytics.com/analytics.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-typeahead.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-carousel.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-scrollspy.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-collapse.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/bower_components/bootstrap-sass/js/bootstrap-tab.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/scripts/jquery.min.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/scripts/controllers/main.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:9000/scripts/controllers/main.js.map:0
Failed to load resource: the server responded with a status of 404 (Not Found)      http://localhost:35729/livereload.js.map:0
在浏览器加载的文件中搜索
.js.map
sourceMappingURL
不会返回任何结果,在项目源代码中也不会返回与这些错误文件相关的结果

只有当WebStorm连接到JetBrains IDE支持插件、初始启动和文件更改实时重新加载时,才会显示错误。它们显示在IDE的javascript调试控制台和浏览器控制台中,但一旦打开开发人员工具并从浏览器完成刷新,就不会抛出错误(因此,我无法在网络选项卡中检查请求启动器,除非有一种方法可以在新选项卡加载、编辑时启动开发人员工具:实际上这也不起作用)

重现问题的步骤:

  • 安装yeoman角发电机
  • 从这些源创建webstorm项目
  • 使用以下配置启动项目(将自动为JS创建第二个配置):
节点解释器:pathToNode\nodejs\Node.exe

工作目录:ProjectRootFolder

JavaScript文件:C:\Users\UserName\AppData\Roaming\npm\node\u modules\grunt cli\bin\grunt

应用程序参数:服务器

对于浏览器/实时编辑:

发射后检查

使用JavaScript调试器检查

开始url:
http://localhost:9000


关于如何调试这些错误,您有什么想法吗?谢谢您的帮助!

这些消息只是调试输出:Jetbrains IDE Chrome扩展检查是否存在js.map文件,如果没有找到,则打印一条消息。进行此检查的原因是,某些用于压缩/传输代码的工具没有生成所需的代码//sourceMapUrl注释调试器需要定位sourcemaps,因此它会检查一些默认位置是否存在映射。因此,这些消息不会指示任何错误,也不会造成任何伤害,可以安全地忽略它们。此调试输出将在下一次插件更新中过滤掉-修复正在进行中这些消息只是调试输出:Jetbrains IDE Chrome扩展检查是否存在js.map文件,如果没有找到,则打印一条消息。进行此检查的原因是,用于压缩/传输代码的某些工具没有生成所需的//sourceMapUrl注释调试器需要定位sourcemaps,因此它会检查一些默认位置是否存在映射。因此,这些消息es不表示任何错误,也不会造成任何伤害,可以安全地忽略它们。此调试输出将在下一次插件更新中过滤掉-修复正在进行中,因为lena提到错误不相关,我安装了,并添加了一个匹配项以将错误涂成绿色,因此不会引起注意


我尝试过将它们过滤掉,但我不确定为什么这样做不起作用。

因为lena提到错误不相关,所以我安装了,并添加了一个匹配项,将错误涂成绿色,这样它们就不会引起注意


我尝试过过滤它们,但我不确定为什么不起作用。

有没有办法在当前版本中隐藏这些异常?它们很可能会分散对实际异常的注意力。我想我可以使用此插件将这些错误涂成绿色。目前没有办法过滤它们,抱歉:(让我们等待修复有没有办法在当前版本中隐藏这些异常?它们很有可能会分散对实际异常的注意力。我想我可以使用此插件将这些错误涂成绿色。目前没有办法过滤它们,抱歉:(让我们等待修复。)