Search code examples
debuggingreactjswebpackbundle

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...


Solution

  • In webpack config file , check debug is true :

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