You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is interest in merging a fix I can submit a PR to try and address, but this package no longer appears maintained. Any feedback available on next steps as I believe prompt to be broken in node 14.
$ node server.js
(node:44594) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
Winston version 2.4.5 fixes this issue (see winstonjs/winston#1797 (comment)). The package.json here says "winston": "2.x" on master, but that was committed on 2016-12-15 while the last version tag (v1.0.0) is from long before that. Tagging a new version based on the current master should fix this problem.
If a maintainer of this module that has the capability to publish to the npm registry ever expresses interest in some basic fixes, I would be happy to submit a PR to fix this issue. Until then I just use a forked version of this repo because I love it so much.
@gangstead I see you accept pull requests for the repo. Could you please publish 1.1.0 to npm? It was fixed few years ago in master: 6ebf54a
actually I am not sure whether prompt 1.1.0 fix this problem. cause I do update the prompt version to 1.1.0, but it still install the 2.1.x winston dep
Activity
martinlevesque commentedon May 15, 2020
The package really causes this warning.
Made a simple POC.
package.json:
server.js:
require('prompt')leads to:
Update findAvailablePort to use inquirer
Update askForUsageDataPermission to use inquirer
kohenkatz commentedon Oct 30, 2020
Winston version 2.4.5 fixes this issue (see winstonjs/winston#1797 (comment)). The
package.jsonhere says"winston": "2.x"onmaster, but that was committed on 2016-12-15 while the last version tag (v1.0.0) is from long before that. Tagging a new version based on the currentmastershould fix this problem.apolopena commentedon Nov 6, 2020
If a maintainer of this module that has the capability to publish to the
npmregistry ever expresses interest in some basic fixes, I would be happy to submit a PR to fix this issue. Until then I just use a forked version of this repo because I love it so much.ezze commentedon Nov 26, 2020
Guys, please update
winstonup to 2.4.5!ezze commentedon Nov 26, 2020
@gangstead I see you accept pull requests for the repo. Could you please publish 1.1.0 to npm? It was fixed few years ago in
master: 6ebf54aGnosnay commentedon Mar 9, 2021
actually I am not sure whether prompt 1.1.0 fix this problem. cause I do update the prompt version to 1.1.0, but it still install the 2.1.x winston dep
caub commentedon Mar 9, 2021
@Yansongsongsong Can you double check, because 1.1.0 is published and is the same as https://github.com/flatiron/prompt/blob/master/package.json#L25
fix: winston's circular dependency problem