Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I debug webpack bundle file error and find exact error in bundle that consists thousand no. of lines in reactJs

I want to find exact error in my program, where is error occurring in real time. I have been facing problem to detect error as It only shows bundle file that have thousand no. of lines. That is next to impossible to go through all the code at once. Please provide solution If you have. Thanks in advance...

like image 239
neeraj jangid Avatar asked Oct 30 '22 11:10

neeraj jangid


1 Answers

In webpack config file , check debug is true :

{
    debug: true,
    devtool: 'source-map',
    entry: ...

....
}
like image 140
Abdennour TOUMI Avatar answered Nov 15 '22 09:11

Abdennour TOUMI