ng-alain/ng-zorro-vscode

<nz-* snippet not working

Svetomechc opened this issue · 14 comments

Where is nz-button?

image

image

@Svetomechc You can check error information via open help - Toggle Developer tools.

I think may be no automatic installation of dependency packages when vscode installs ng-zorro-vscode extensions, #8

I checked there, no errors.

What is the suggested workaround?

I think you have tried to uninstall and then reinstalled. _

@cipchk already tried ofc

@Svetomechc I have a way you can try it.

  1. Go to /Users/<Your Name>/.vscode/extensions/cipchk.ng-zorro-vscode-7.3.4/ path
  2. Clean node_modules
  3. Running yarn
  4. restart vscode

@cipchk there isn't a node_modules folder there:

image

@Svetomechc ingore step 2.

@cipchk that worked, thanks!

@cipchk although not for a very long time... and now repeating these steps does nothing at all.

@cipchk 我也碰到这个问题,试了你上面的方法,还是解决不了。调试没有报错,但传入的值是空的。。

@Donmen 抱歉,我想不到有什么办法可以解决了;目前我在 mac 下并无发生过这类情况,而 windows 下好像会有这种很奇怪的情况,总感觉应该是权限问题吧,导致无法自动执行安装依赖。

我在ng-zorro-vscode-8.3.0下的snippets.json似乎没有发现有nzs-button触发前缀。。。

fixed by 11 version.