SP-Starter-Kit的Framework Tiles无法正常工作

时间:2019-12-05 05:26:08

标签: sharepoint sharepoint-online spfx

我从https://github.com/eoverfield/sp-starter-kit的入门工具包中拉出了瓷砖。当我执行“ npm install”并运行“ gulp serve”时,没有任何错误。本地一切正常,但是当我打包sppkg时,出现以下错误:

当我将其放入SPO时出现

错误消息 enter image description here

NPM和节点版本 enter image description here

我认为这与我的NPM和Node的版本控制有关吗?还是“ launch.json”需要目录而不是localhost:4321?我迷路了,任何建议将不胜感激。

1 个答案:

答案 0 :(得分:0)

您需要运行gulp serve来测试解决方案(以便Webpart可以从本地加载Webpart js库)。

或将您的解决方案部署到CDN或SharePoint库,以便webarpt可以从CDN或SharePoint库加载Webpart js。

https://www.c-sharpcorner.com/article/sharepoint-framework-deploy-spfx-webparts-to-sharepoint-library/