我正在尝试打包一些来自GitHub https://github.com/SharePoint/sp-dev-fx-webparts的SharePoint from部件
文档库https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-documents-detailslist
其目标是在SharePoint中引入来自不同网站集的文档库
安全网格https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-securitygrid
安全网格将允许我的团队快速访问,以控制谁有权访问各种网站库中的哪些文件。
我使用VS Code、NVM、NPM和Gulp。文档库1.0部件是SPFx GA (1.0)。使用nvm我设置node安装v6.17.1,结果如下
added 1691 packages from 1741 contributors and audited 111373 packages in 323.901s
found 884 vulnerabilities (295 low, 34 moderate, 548 high, 7 critical)
run `npm audit fix` to fix them, or `npm audit` for details在那之后,我运行了一个'gulp & gulp捆绑包--ship & gulp -solution --ship‘,没有问题。
我将包部署到我的O365租户,但在尝试将其添加到SharePoint页面时,不断收到此错误。
Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.
Technical Details
[SPLoaderError.loadComponentError]:
***Failed to load component "8635c52e-cf0b-4c6d-a5ba-66f1d8d92005" (LibraryDocumentsWebPart). Original error: ***Failed to load URL '/sites/dev03/Style Library/CDN/react-documents-detailslist-librarydocumentswebpartstrings_en-us_f6b12acaf67a67cf5971e8da720715f9.js' for resource 'LibraryDocumentsWebPartStrings' in component '8635c52e-cf0b-4c6d-a5ba-66f1d8d92005' (LibraryDocumentsWebPart). The file was not found in the server.
***INNERERROR:
***Failed to load URL '/sites/dev03/Style Library/CDN/react-documents-detailslist-librarydocumentswebpartstrings_en-us_f6b12acaf67a67cf5971e8da720715f9.js' for resource 'LibraryDocumentsWebPartStrings' in component '8635c52e-cf0b-4c6d-a5ba-66f1d8d92005' (LibraryDocumentsWebPart). The file was not found in the server.
***CALLSTACK:
Error
at t (https://spoprod-a.akamaihd.net/files/sp-client/sp-loader-assembly_en-us_3993179394b3b04563388c5043768f22.js:3:53337)
at t (https://spoprod-a.akamaihd.net/files/sp-client/sp-loader-assembly_en-us_3993179394b3b04563388c5043768f22.js:1:139106)
at e.buildErrorWithVerboseLog (https://spoprod-a.akamaihd.net/files/sp-client/sp-loader-assembly_en-us_3993179394b3b04563388c5043768f22.js:1:149068)
at e.buildLoadComponentError (https://spoprod-a.akamaihd.net/files/sp-client/sp-loader-assembly_en-us_3993179394b3b04563388c5043768f22.js:1:145093)
at Anonymous function (https://spoprod-a.akamaihd.net/files/sp-client/sp-loader-assembly_en-us_3993179394b3b04563388c5043768f22.js:1:135256)对新程序员有什么帮助吗?
发布于 2020-02-13 09:49:40
直到SharePoint框架1.4版才添加对在包中包含客户端资产的支持。在此之前,您需要手动部署这些额外的资产。请参阅描述类似问题的this thread,以及有关如何更新您的框架的official doc。
https://stackoverflow.com/questions/60196872
复制相似问题