Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency with node 16 #3

Open
brunob opened this issue Oct 7, 2022 · 2 comments

Comments

@brunob
Copy link

brunob commented Oct 7, 2022

Hi, with node v16.17.1 during install i get this error :

prompt: Please enter you Zenodo API Key. (Enter to ignore):  (node:31189) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)

I i run node zotzen.js IAZCA5BJ --show i get the same error, details :

node --trace-warnings zotzen.js IAZCA5BJ --show
(node:32530) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
    at emitCircularRequireWarning (node:internal/modules/cjs/loader:719:11)
    at Object.get (node:internal/modules/cjs/loader:735:5)
    at Object.exports.setLevels (/zotzen-cli/node_modules/winston/lib/winston/common.js:35:14)
    at Object.<anonymous> (/zotzen-cli/node_modules/winston/lib/winston.js:84:8)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18)
@brunob
Copy link
Author

brunob commented Oct 7, 2022

Similar error reported in this issue balderdashy/sails#7096

@brunob
Copy link
Author

brunob commented Oct 7, 2022

Updating prompt to 1.1.0 in package.json seems to fix the bug, would you like a PR for that ?

brunob added a commit to brunob/zotzen-cli that referenced this issue Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant