【发布时间】:2020-03-11 06:41:14
【问题描述】:
我在为 SP 的新 Web 部件中加载 SPFx 中的 $schema 时遇到问题。 Web 部件正在处理 benchmark.aspx,但我的整个清单没有被处理,所以我无法设置 preconfiguredEntries,这对我来说是个大问题。
错误是: 加载参考“https://developer.microsoft.com/json-schemas/spfx/client-side-manifest-base.schema.json”时出现问题:请求 vscode/content 意外失败,未提供任何详细信息。(768)
请对这个问题有任何想法?
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-web-part-manifest.schema.json",
"id": "56dab116-67ba-453f-883d-b7a11690e965",
"alias": "ReadListWebPart",
"supportedHosts": ["SharePointWebPart"],
"componentType": "Webpart",
"version": "1.0",
"manifestVersion": "2",
"requiresCustomScript": false,
"preconfiguredEntries": [{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70",
"group": { "default": "Other" },
"title": { "default": "read-list" },
"description": { "default": "popis web party" },
"officeFabricIconFontName": "Page",
"properties": {
"vedouci_velke_foto": true,
"asistenti_pod_vedoucim": false,
"nazev_web_party": "To jsme my"
}
}]
}
【问题讨论】:
标签: sharepoint jsonschema web-parts spfx manifest.json