在构建脚本中的什么位置放置 `node --trace-warnings ...` 以显示创建警告的位置?

问题描述 投票:0回答:0

我有一个 npm 错误出现在下面:

Building Angular Package
(node:27137) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:27137) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:27137) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:27137) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:27137) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:27137) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

我已经在我的 package.json 脚本块中的每个节点和 ncp 语句中放置了

--trace-warnings
,但我仍然没有得到有关警告的帮助。显然我没有将它包含在正确的脚本块中。它到底需要去哪里?

npm-scripts
© www.soinside.com 2019 - 2024. All rights reserved.