【发布时间】:2022-02-04 10:16:41
【问题描述】:
我的应用中有 GUN.js,它导致了这个麻烦的警告。如何清除此警告?
WARNING in ./node_modules/gun/gun.js 6:17-29
Critical dependency: the request of a dependency is an expression
@ ./src/components/MessageHandler.js 7:0-26 9:14-17
@ ./src/App.js 20:0-61 230:37-51
@ ./src/index.js 7:0-24 13:33-36
1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.67.0 compiled with 1 warning in 174 ms
import Gun from 'gun/gun' 和 import Gun from 'gun' 我都试过了。
【问题讨论】:
-
遇到同样的问题
Critical dependency: the request of a dependency is an expression