prompt: nickname: (node:17506) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
KR1470R opened this issue · comments
victor commented
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 commented
I have the same issue. How can we fix this?
victor commented
Idk, i just used readline.
Matt Fletcher commented
I think this might be a dupe of #199
Matt Fletcher commented
Similarly to KR1670R, I just opted to use Inquirer instead
Dmitriy Pushkov commented
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!