【问题标题】:handlebars-helpers /node_modules/log-utils/ cannot statically analyse 'require(..., ...)' webpackhandlebars-helpers /node_modules/log-utils/ 无法静态分析 'require(..., ...)' webpack
【发布时间】:2021-04-27 16:04:54
【问题描述】:

我正在为我的项目安装车把助手。

在我将“unlazy-loader”添加到我的 webpack 文件后,问题

./node_modules/create-frame/utils.js 3:34-41 中的警告 关键依赖:require函数的使用方式不能静态提取依赖

解决了,但是我遇到了一个错误:

./node_modules/logging-helpers/node_modules/log-utils/index.js 无法在第 21 行静态分析 'require(..., ...)'

【问题讨论】:

    标签: webpack handlebars.js handlebarshelper


    【解决方案1】:

    距离上次更新handlebars-helperslogging-helpers似乎已经很久了。

    所以有些依赖已经过时了。

    我通过编辑node_modules/logging-helpers/package.json解决了这个问题

    更新为:

    "dependencies": {
        "isobject": "^3.0.0",
        "log-utils": "0.3.0"
      },
    

    另外,我更新了 package-lock.json。

    然后问题就解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-09
      • 1970-01-01
      • 1970-01-01
      • 2018-02-17
      • 1970-01-01
      • 2018-04-01
      • 1970-01-01
      • 2022-01-14
      相关资源
      最近更新 更多