question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Node.js v14 Warning: Accessing non-existent property ___ of module exports inside circular dependency

See original GitHub issue

šŸ› Bug Report

On Node.js v14 there are a lot of warnings when using docusaurus v2. These warnings do not occur when running Node.js v13.13.0.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. Install Node.js v14.0.0
  2. Run npm start on a docusaurus v2 project (looks like it occurs on npm run build as well, maybe others)

Expected behavior

No warnings or errors to occur in Node.js v14.0.0 (ie. same behavior as Node.js v13.13.0)

Actual Behavior

Lots of warnings displayed (see logs below).

(node:79706) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:79706) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:79706) Warning: Accessing non-existent property 'which' of module exports inside circular dependency

Your Environment

  • Docusaurus version used: ^2.0.0-alpha.50
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Node.js v14.0.0
  • Operating system and version (desktop or mobile): Desktop

Reproducible Demo

  1. Clone https://github.com/dynamoosejs/dynamoose
  2. cd docs
  3. npm install
  4. npm start

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
ariellercommented, Apr 26, 2020

same here with mongodb -

(node:9736) Warning: Accessing non-existent property ā€˜countā€™ of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:9736) Warning: Accessing non-existent property ā€˜findOneā€™ of module exports inside circular dependency (node:9736) Warning: Accessing non-existent property ā€˜removeā€™ of module exports inside circular dependency (node:9736) Warning: Accessing non-existent property ā€˜updateOneā€™ of module exports inside circular dependency

everything works thoughā€¦ used the exact same code a month ago and had no warnings like the above

1reaction
userqincommented, Apr 26, 2020

Docusaurus is not Hexo.

Could you please help fix the following issues ?. Thank you

  • (node:15335) Warning: Accessing non-existent property ā€˜linenoā€™ of module exports inside circular dependency
  • (Use node --trace-warnings ... to show where the warning was created)
  • (node:15335) Warning: Accessing non-existent property ā€˜columnā€™ of module exports inside circular dependency
  • (node:15335) Warning: Accessing non-existent property ā€˜filenameā€™ of module exports inside circular dependency
  • (node:15335) Warning: Accessing non-existent property ā€˜linenoā€™ of module exports inside circular dependency
  • (node:15335) Warning: Accessing non-existent property ā€˜columnā€™ of module exports inside circular dependency
  • (node:15335) Warning: Accessing non-existent property ā€˜filenameā€™ of module exports inside circular dependency
Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessing non-existent property 'column' of module exports ...
Node 14 with warning (node:31518) Warning: Accessing non-existent property 'column' of module exports inside circular dependency #32987. Closed.
Read more >
Accessing non-existent property 'padLevels' of module exports ...
This issue would generally be caused due to incompatible packages or SDKs that you are using. Best is to doĀ ...
Read more >
Accessing non-existent property 'count' of module exports ...
Warning : Accessing non-existent property 'count' of module exports inside circular dependency. Welcome to Node. js v14.
Read more >
Accessing non-existent property 'INVALID_ALT_NUMBER'
(node:10704) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency (Use `nodeĀ ...
Read more >
Accessing non-existent property 'MongoError' of module ...
(node:16496) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency (Use `node --trace-warningsĀ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found