前言
通过Spfx创建webpart后,通过gulp serve在SharePoint online站点进行测试时,报错:ensure the server is running and the "debugManifestsfile" parameter,解决方法如下
报错信息
解决方案
在终端(或是命令行窗口)执行如下命令,再次运行gulp serve,可以正常预览创建好的webpart
gulp trust-dev-cert
操作步骤如下图
最终测试步骤
1、在终端输入gulp serve,会自动打开浏览器
2、在弹出的提示框中点击“Load Debug scripts”
3、会弹出自定义的弹出信息,即代表成功