首页 > 解决方案 > 如何调试“关键依赖:依赖的请求是一个表达式”?

问题描述

就在最近,我开始在我的 React 项目的几个页面中看到这条消息。我不记得以前见过它:

react_devtools_backend.js:2430 ./node_modules/typescript/lib/typescript.js
Critical dependency: the request of a dependency is an expression
overrideMethod @ react_devtools_backend.js:2430
printWarnings @ webpackHotDevClient.js:138
handleWarnings @ webpackHotDevClient.js:143
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:210

我用谷歌搜索了几次,但找不到问题出现的线索。任何帮助,将不胜感激。

标签: reactjsreact-devtoolswebpack-hot-client

解决方案


推荐阅读