解决(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_modules\stylus\lib\nodes\index.js 文件,在 index.js 文件中加上以下代码,成功解决~
exports.lineno = null; exports.column = null; exports.filename = null;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
码云笔记 » 解决(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