2013-11-04 71 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

相關問題