无法让探查器在开发或产品上工作

doc*_*pus 7 profiling reactjs

我正在运行react 16.12.0、react-dom 16.12.0 和调度程序0.19.1。

在生产版本中,当我查看 Profiler 选项卡时,它显示:

Profiling not supported.
Profiling support requires either a development or production-profiling build of React v16.5+.

Learn more at fb.me/react-profiling.
Run Code Online (Sandbox Code Playgroud)

在开发版本中,当我尝试访问 React DevTools 时,我会收到此弹出窗口。控制台也不显示 Profiler 选项卡。

在此输入图像描述