解决(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抓紧创作!

微信微信 支付宝支付宝

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

声明:
1. 本站所有文章教程及资源素材均来源于网络与用户分享或为本站原创,仅限用于学习和研究。
2. 如果内容损害你的权益请联系客服QQ:1642748312给予处理。
码云笔记 » 解决(node)Warning: Accessing non-existent property ‘xxx‘ of module exports inside circular depen

发表回复

IT互联网行业相关广告投放 更专业 更精准

立即查看 联系我们