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

[With possible workaround] Node warning when opening the preview #335

Closed
kqwyf opened this issue May 7, 2021 · 1 comment
Closed

[With possible workaround] Node warning when opening the preview #335

kqwyf opened this issue May 7, 2021 · 1 comment

Comments

@kqwyf
Copy link

kqwyf commented May 7, 2021

Describe the bug
When opening the preview, a warning occurs: Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency. While the preview still works, this is very annoying.

图片

To Reproduce
Steps to reproduce the behavior:

  1. Install the plugin.
  2. Set let g:mkdp_auto_start = 1. (didn't test if it still occurs when this variable is 0)
  3. Open a Markdown document.

Expected behavior
Preview works without warning prompt.

Environment:

  • OS: Manjaro KDE (2021.05.07)
  • Nodejs: v16.0.0
  • npm: 7.12.0
  • yarn: 1.22.10

Possible solution/workaround:

  • Run cd app && yarn upgrade after installation.

The reason seems to be an old version of package winston, which is required by package neovim. See winston#1797. A simple cd app && yarn upgrade get me on the way.

Since I'm not familiar with nodejs programming, I'm not sure whether this is an elegant solution. Hoping anyone provide a final solution and commit it. Thanks!

@iamcco
Copy link
Owner

iamcco commented May 13, 2022

fix with latest version

@iamcco iamcco closed this as completed May 13, 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

2 participants