chrome-react-perf icon indicating copy to clipboard operation
chrome-react-perf copied to clipboard

Perf.start is not a function

Open bing1021 opened this issue 6 years ago • 1 comments

I install react-addons-perf and expose-loader in my project

here is my webpack config

     {
        test: require.resolve("react-addons-perf"),
        use: [
          {
            loader: 'expose-loader',
            options: 'Perf'
          }
        ]
      }

and i assign Perf to window

but run Perf.start is not a function ,is undefined

Why?

bing1021 avatar Nov 02 '17 06:11 bing1021

Sorry, I am not sure what happened, just checked react-addons-perf, the api does not change. What's the version of your webpack?

crysislinux avatar Nov 02 '17 09:11 crysislinux