node.jsgoogle-chromereactjswebpackwebpack-dev-server

React JS: console.debug is not a function


I'm running a ReactJs web app, my web running well in webpack-dev-server, but chrome/firefox console always got "Uncaught TypeError: console.debug is not a function" after I bundle my codes, I have no idea how to solve this.

enter image description here

enter image description here


Solution

  • try adding node: { console: true } and debug: true in webpack config file.