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

Posted 王同学要努力

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了(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上找到了这个答案

https://github.com/stylus/stylus/pull/2538/commits/16e2a6c6f96f80b0d700411879f1c13991a0a1a5


找到下面的文件:
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的主要内容,如果未能解决你的问题,请参考以下文章

php 来自http://www.codeexpertz.com/blog/drupal/drupal-8-accessing-node-values-and-properties-loading

微信小程序 (node) warning: possible EventEmitter memory leak detected

(转) WARNING: Could not open/create prefs root node SoftwareJavaSoftPrefs at root 0x80000002. Windo(示

Error accessing PRODUCT_USER_PROFILE

Accessing data with MySQL

Accessing data using cursors