2016-01-21 35 views
2

我正在運行ReactJs網絡應用程序,我的web在webpack-dev-server中運行良好,但是Chrome/Firefox控制檯總是得到「Uncaught TypeError:console.debug is not一個函數「在捆綁我的代碼後,我不知道如何解決這個問題。React JS:console.debug不是函數

enter image description here

enter image description here

+0

如果使用console.log(...)而不是console.debug(..),會發生什麼情況? – fzxt

+2

不,我不使用console.debug,它似乎來自ReactJS或webpack,我不知道源代碼在哪裏。 –

+2

嘗試在您的webpack配置文件中添加debug:true?顯然console.debug(..)沒有默認啓用,因爲所有的瀏覽器都沒有。 – fzxt

回答

1

嘗試的WebPack配置文件中添加node: { console: true }debug: true

相關問題