【问题标题】:GUN.js causes build warning: Critical dependency: the request of a dependency is an expressionGUN.js 导致构建警告:严重依赖:依赖的请求是一个表达式
【发布时间】: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

标签: node.js webpack gun


【解决方案1】:

这个错误应该在最新的 GitHub main 上修复。

似乎与

有关

How to access SEA module in GUNJS without using dynamic require in React Native expo

(请不要删除我的帖子,我不是这里的mod,我只是一个试图帮助的OSS作者,我没有时间弄清楚所有规则,我不想关闭或删除其他人的问题,因为这让我看起来很糟糕。如果其他人愿意,他们可以,但在那之前,人们需要回答他们的问题。谢谢!)

【讨论】:

    猜你喜欢
    • 2021-10-12
    • 2021-06-13
    • 2017-12-08
    • 2016-08-28
    • 2017-08-11
    • 2020-06-15
    • 1970-01-01
    • 2022-11-10
    • 2020-10-11
    相关资源
    最近更新 更多