3

我只想将“node-opcua”导入我的项目,但它给了我如下错误:

WARNING in ./node_modules/node-opcua-pki/node_modules/yargs/index.js 11:37-44
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
4

1 回答 1

2

您收到警告。yargs 开发人员建议忽略警告: https ://github.com/yargs/yargs/blob/v15.xx/docs/webpack.md 将“warningsFilter: [/node_modules/yargs/]”添加到您的 webpack 配置

于 2019-12-10T16:50:52.387 回答