Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 293
Wilson Liao Avatar asked Apr 25 '26 11:04

Wilson Liao


1 Answers

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

like image 136
Wilson Liao Avatar answered Apr 28 '26 02:04

Wilson Liao



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!