2013-11-04 70 views
1

与WebStorm 7.0.1运行自耕农角发生器咕噜服务器抛出:WebStorm 7 - 约曼角缺少sourcemaps`未能加载资源:服务器用的404(未找到)状态回答`

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.mapsourceMappingURL不会返回任何结果,并且在项目源中没有与错误中的文件相关的结果。

仅当WebStorm连接到JetBrains IDE支持插件时,才会在首次启动时和文件更改实时重新加载时显示错误。它们显示在IDE的javascript调试控制台中,也显示在浏览器控制台中,但是一旦开发人员工具被打开并且刷新从浏览器完成,就不会引发任何错误(所以我无法检查网络选项卡,除非有一种方法来启动新的制表符加载,开发工具编辑:实际上也不会工作)。

步骤来重现问题:

  • 安装自耕农角发生器
  • 创建从那些源的webstorm项目
  • 使用以下配置启动项目(一个第二配置将被自动JS创建):

节点解释:pathToNode \的NodeJS \ node.exe

工作目录:ProjectRootFolder

JavaScript文件:C:\ Users \用户名\ AppData \漫游\故宫\ node_modules \咕噜-CLI \ BIN \咕噜

应用PARAM:服务器

http://j.mp/1azrdky

和浏览器/现场编辑:

检查发射后

检查与JavaScript调试器

开始网址:http://localhost:9000

http://j.mp/1azrfJl

,我怎么能去调试这些错误的任何想法?感谢您的帮助!

回答

4

这些消息只是调试输出:Jetbrains IDE Chrome扩展检查是否存在js.map文件,如果未找到,则会打印消息。此检查的原因是用于压缩/转储代码的一些工具不会生成所需的// sourceMapUrl注释,调试器需要查找源代码映射,因此它会检查映射存在的一些默认位置。所以,这些信息并不表明任何错误,也不会造成任何伤害,因此可以安全地忽略它们。此调试输出将在下一个插件更新中被滤除 - 修复正在进行中

+0

有什么方法可以隐藏当前版本中的这些异常?他们很有可能从实际例外中分心。 –

+0

我想我可以使用这个插件来颜色错误绿色http://plugins.jetbrains.com/plugin/7125 –

+1

目前没有办法将它们过滤掉,对不起:(让我们等待修复 – lena

相关问题