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

can't preview #12

Open
Jerryow opened this issue Mar 19, 2019 · 2 comments
Open

can't preview #12

Jerryow opened this issue Mar 19, 2019 · 2 comments

Comments

@Jerryow
Copy link

Jerryow commented Mar 19, 2019

when i try to press ctrl+f8, it alert: node 小程序预览失败,请稍后再试, 错误原因: 'node' is not recognized as an internal or external command, operable program or batch file. i do know why

@CyberFoxHax
Copy link

install node.js restart vscode
that reveals another error though
"小程序预览失败,请稍后再试, 错误原因: Error: command 'vscode.previewHtml' not found"
and the issue remains unresolved.
I installed VSCode 1.6.1 and it ran fine.

@CyberFoxHax
Copy link

CyberFoxHax commented Sep 11, 2019

"vscode.previewHtml" has been deprecated microsoft/vscode#62630
it's replaced with the Webview API
https://code.visualstudio.com/api/extension-guides/webview
https://github.com/Microsoft/vscode-extension-samples/blob/master/webview-sample/README.md

i will fork and pull if i find a solution.

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