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

(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-existent property ‘xxx‘ of module exports inside circular depen

找到 node_modules\stylus\lib\nodes\index.js 文件,在 index.js 文件中加上以下代码,成功解决~

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

「点点赞赏,手留余香」

1

给作者打赏,鼓励TA抓紧创作!

微信微信 支付宝支付宝

还没有人赞赏,快来当第一个赞赏的人吧!

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
码云笔记 » 解决(node)Warning: Accessing non-existent property ‘xxx‘ of module exports inside circular depen

发表回复