gpt4 book ai didi

javascript - 关键依赖 : require function is used in a way in which dependencies cannot be statically extracted [magic]

转载 作者:行者123 更新时间:2023-12-05 05:47:01 25 4
gpt4 key购买 nike

当使用 magic-sdk v8.0.1 时,我收到此警告:

warn  - ./node_modules/magic-sdk/dist/es/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

谁能告诉我这里发生了什么?

最佳答案

问题与 magic-sdk 的 ESM 输出有关。您可以忽略此警告,因为它不被视为错误或使您的 bundler 配置将 magic-sdk 解析为其 CommonJS 入口点(magic-sdk/dist/cjs/index.js).

可以在这里找到详细的解释:https://github.com/magiclabs/magic-js/issues/295

关于javascript - 关键依赖 : require function is used in a way in which dependencies cannot be statically extracted [magic],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71096714/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com