Print

解决(node)Warning: Accessing non


作者: 文章来源:

本文原地址:https://www.mimiwuqi.com/webqianduan/196211.html

(node)Warning: Accessing non-existent property ‘xxx’ of module exports inside circular depen

报错如下:

(node:18216) Warning: Accessing non-existent property 'column' of module exports inside circular depen
(node:18216) Warning: Accessing non-existent property 'filename' of module exports inside circular dep
(node:18216) Warning: Accessing non-existent property 'lineno' of module exports inside circular depen
(node:18216) Warning: Accessing non-existent property 'column' of module exports inside circular depen
(node:18216) Warning: Accessing non-existent property 'filename' of module exports inside circular dep

解决办法:

好像是 stylus 的问题,说 node 版本太高,要降低版本,于是我继续查找资料,在 Github 上找到了这个答案:

解决(node)Warning: Accessing non 1

找到 node_modulesstyluslibnodesindex.js 文件,在 index.js 文件中加上以下代码,成功解决~

exports.lineno = null;
exports.column = null;
exports.filename = null;

更多 建站教程 请访问 https://www.mimiwuqi.com/webqianduan/