Sitelet https://web.archive.org/web/20201206083554/https://github.com/apostrophecms/apostrophe/issues/2589
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

3.0: prompt bug on Node 14 #2589

Open
abea opened this issue Nov 25, 2020 · 1 comment
Open

3.0: prompt bug on Node 14 #2589

abea opened this issue Nov 25, 2020 · 1 comment

Comments

@abea
Copy link
Member

@abea abea commented Nov 25, 2020

To Reproduce

Step by step instructions to reproduce the behavior:

  1. Set your terminal to use Node 14.
  2. Do a fresh install of A3
  3. In a linked project, create a new user with node app @apostrophecms/user:add username admin

Expected behavior

Everything runs nicely.

Describe the bug

A warning is logged: (node:36344) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

Details

Version of Node.js:
Node 14

Server Operating System:
MacOS

Additional context:
This is likely related to the use of prompt@0.25. It has winston as a dependency, which I don't think supports Node 14. Switching to prompts instead of prompt should fix this.

@abea abea changed the title 3.0 3.0: prompt bug on Node 14 Nov 25, 2020
@boutell
Copy link
Member

@boutell boutell commented Nov 30, 2020

This may be resolved by Joe's PR, which I tested and merged today, although not with Node 14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.