现代UI spfx解决方案在Sharepoint Online上处理js文件时出现了错误 [英] Modern UI spfx solution manifests.js error while processing the js file on Sharepoint Online

查看:117
本文介绍了现代UI spfx解决方案在Sharepoint Online上处理js文件时出现了错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在我的SharePoint Online网站中,我有一个js脚本,它在文档库功能区中显示自定义操作。

In my SharePoint Online site, I am having one js script which displays a custom action in document library ribbon.

现在我将网站转换为Modern UI。但是这个js注入没有发生。

Now I am converting the site into Modern UI. But this js injection is not happening.

为此我使用的是SPFX框架,在这个spfx解决方案中,我将包括这个js文件,并在ts内部的渲染上调用它文件存在于"src / webparts / mycomponent"中。

For that I am using the SPFX framework and in this spfx solution, I am including this js file and calling it on the render inside the ts file which is present in "src/webparts/mycomponent".

现在我在cmd上使用以下命令调试它:

Now I am debugging it using the following command on the cmd:

gulp serve --nobrowser

现在我打开了我的SPO文档库,并在最后一个url中追加以下查询字符串:

Now I opened my SPO document library, and append the following query string in last of the url:

<强> loadSpfx =真安培; debugManifestsFile = HTTPS://本地主机:4321 /温度/ manifests.js&安培; customActions = {" 9eb7340d-c014-4ce2-855b-05a7a1f04ea5" ;: {"位置":" ; ClientSideExtension.ApplicationCustomizer"," properties":{" prop1":" val1"}}}

我弹出以下错误:

Error loading debug manifest script. Ensure the server is running and the "debugManifestsFile" parameter URL is correct.

Error: Unknown error when loading module https://localhost:4321/temp/manifests.js

任何人都可以指导我问题所在。

Can anyone guide me where the issue is.

推荐答案

请有人建议我解决。


这篇关于现代UI spfx解决方案在Sharepoint Online上处理js文件时出现了错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆