-->

WebStorm 7 - 约曼角缺失sourcemaps`无法加载资源:服务器与404(未找到)状

2019-10-18 22:25发布

运行与WebStorm 7.0.1抛出自耕农角度发电机咕噜服务器:

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项目
  • 使用以下配置(第2个配置会为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

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

Answer 1:

这些消息只是调试输出:所述Jetbrains的IDE Chrome扩展检查的js.map文件存在,并且,如果没有找到,打印的消息。 这样做的原因检查是用于压缩/ transpile代码的一些工具不产生所需// sourceMapUrl评论调试器需要定位sourcemaps,所以它检查地图存在一些默认位置。 因此,这些消息并不表示任何错误,并没有做任何伤害,他们可以安全地忽略。 这调试输出将在下一插件更新被过滤掉 - 修复正在进行中



Answer 2:

由于作为莉娜提到的错误是不相关的我安装了grep的控制台 ,并增加了比赛上色绿色的错误,这样就不会引起注意。

http://j.mp/18SDYjC

http://j.mp/18SE4aU

我试图筛选出来,但我不知道为什么不起作用。



文章来源: WebStorm 7 - Yeoman Angular missing sourcemaps `Failed to load resource: the server responded with a status of 404 (Not Found)`