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

vs安装之后,只显示nzs-radio-button,但是没有nz-button? #8

Closed
robinloop opened this issue Feb 3, 2019 · 5 comments
Closed

Comments

@robinloop
Copy link

RT

@robinloop robinloop changed the title vs安装之后,显示nzs-radio-button这种,但是没有nz-button? vs安装之后,只显示nzs-radio-button,但是没有nz-button? Feb 3, 2019
@cipchk
Copy link
Member

cipchk commented Feb 3, 2019

打开 Help -> Toggle Developer Tools 查看是否有什么错误。

@robinloop
Copy link
Author

robinloop commented Feb 3, 2019

按照步骤新建ng项目,add ng-alian脚手架后,打开一个html页,报错信息是

激活扩展“cipchk.ng-alain-vscode”失败: Cannot find module 'less'

跟这个有关系吗?

上午时候node-sass那个安装失败了,下载和python版本问题,刚刚我把这些重弄了,但是依然报上面的错误

追加:
我把alain的snippet删掉,重新安装了zorro的snippet,控制台没报错,但是依然只有nzs,没有nz

@cipchk
Copy link
Member

cipchk commented Feb 3, 2019

@robinloop zorro-vscode 不依赖额外npm包,但所有触发必须是 < 开头;其实判断 zorro-vscode 是否有效,可以找一个 .html 后缀并鼠标移到任你本个 nz-zorro-antd 组件是否显示文档。

另,alain-vsocde 依赖了 less,这个问题第一次遇到,但我不觉得是哪里引起的,可能最接近一个相关的ISSUES是 #14411;尝试进入 extentions 的目录如果是 windows 应该是 C:\Users(用户)\Administrator(你的用户名).vscode\extensions\ng-alain-vscode 进入目录后手动安装依赖包,即:yarn

@robinloop
Copy link
Author

我都删除了重新安装的,只安装了zorro-vscode,snippet提示还是只有nzs
鼠标hover设置为true了,但是并没有显示文档
页面是可以正常显示的
看起来像你说的zorro-vscode没有生效,有可能是什么原因呢?

@cipchk
Copy link
Member

cipchk commented Aug 21, 2019

@robinloop 参考 #11 (comment) 试一下,关闭此 issues。

@cipchk cipchk closed this as completed Aug 21, 2019
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