score:8

Accepted answer

for inline exporting you need to manually specify the displayname property (i know, it's a pain).

so you do

    export const mycomponent = () => {
      //stuff happens here
    }

    mycomponent.displayname = "mycomponent";

score:1

if it's still not resolved as it wasn't for me, i found a workaround, i added -

devtool: 'eval-cheap-module-source-map'

to my webpack.config.js and make sure to start the webpack build after adding the property.

before adding the devtool. before

after adding the devtool. after

source: https://webpack.js.org/configuration/devtool/


Related Query

More Query from same tag