首页 > 解决方案 > 无法让探查器在 dev 或 prod 上工作

问题描述

我正在运行 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.

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

在此处输入图像描述

标签: reactjsprofiling

解决方案


推荐阅读