如何将node-opcua导入到项目中?

时间:2019-11-25 08:44:05

标签: javascript reactjs node-opcua

我只想将“ 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

1 个答案:

答案 0 :(得分:1)

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