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

prompt: nickname: (node:17506) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency #203

Closed
KR1470R opened this issue Jul 1, 2020 · 5 comments

Comments

@KR1470R
Copy link

KR1470R commented Jul 1, 2020

I'm installed prompt, imported this in my main file js, and get this warning. How fix that?

Source of main file:

const prompt = require("prompt")
prompt.start()
prompt.get("nickname",function(err,res){
	if (err) return onErr(err);
	console.log("Enter your nickname: ")
	console.log(res.nickname)
})

function onErr(err) {
    console.log(err);
    return 1;
}
@ronbreger-cs
Copy link

I have the same issue. How can we fix this?

@KR1470R
Copy link
Author

KR1470R commented Jul 10, 2020

Idk, i just used readline.

@MaffooBristol
Copy link

I think this might be a dupe of #199

@MaffooBristol
Copy link

Similarly to KR1670R, I just opted to use Inquirer instead

@ezze
Copy link

ezze commented Nov 26, 2020

It should be already fixed few years ago: 6ebf54a

But it's not published to npm registry. 1.0.0 is the latest version there published 5 years ago!

@KR1470R KR1470R closed this as completed Nov 26, 2020
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

4 participants