vscode-wechat icon indicating copy to clipboard operation
vscode-wechat copied to clipboard

can't preview

Open Jerryow opened this issue 5 years ago • 2 comments

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

Jerryow avatar Mar 19 '19 06:03 Jerryow

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 avatar Sep 11 '19 03:09 CyberFoxHax

"vscode.previewHtml" has been deprecated https://github.com/Microsoft/vscode/issues/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.

CyberFoxHax avatar Sep 11 '19 03:09 CyberFoxHax