- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在关注 this blog在 SPFX 部分实现 fluentUI,但在执行“Gulp Build”时出现以下错误:
Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupedListSection.d.ts(9,38): error TS1005: ';' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupedListSection.d.ts(10,13): error TS1005: '=' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupedListSection.d.ts(10,33): error TS1005: ';' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupedListSection.d.ts(11,13): error TS1005: '=' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupedListSection.d.ts(11,33): error TS1005: ';' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupedListSection.d.ts(12,13): error TS1005: '=' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupedListSection.d.ts(12,32): error TS1005: ';' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.d.ts(2,13): error TS1005: '=' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.d.ts(2,40): error TS1005: ';' expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.d.ts(4,1): error TS1128: Declaration or statement expected.
[05:38:38] Error - [tsc] node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.d.ts(4,13): error TS1005: ';' expected
................
.......
.......
最佳答案
刚遇到同样的问题。事实证明,最新版本的 Fluent UI 使用 TypeScript 3.8 语法,因此您需要更新 SPFx 项目使用的版本。详细说明在这里:https://www.voitanos.io/blog/use-different-typescript-versions-in-sharepoint-framework-projects/ .实际上,我已经将我的更新到 @microsoft/rush-stack-compiler-3.9,它现在工作正常。
关于sharepoint-online - 在 SharePoint online 中使用 SPFx 实现 FluentUI 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68890597/
我最近更换了我的工作站并开始开始测试新环境,但是我无法成功运行:yo@microsofst/sharepoint 开始构建脚手架。以下是我设置的内容。 节点 v 10.24.1 | NPM v 6.1
我正在使用 Yeoman 创建的 SPFx 开发一个全新的 SharePoint Web 部件,脚手架模板很好,添加 JQuery 和 JQueryUI 的 NPM 也没有出现任何问题,我看到 GUL
您好,我正在我的 SPFX Web 部件中尝试 Java 脚本示例。下面是我的 JavaScript 你可以引用。 JavaScript Code在页面中单击“Yammer”以获取对话框 这是使用 H
我有一个 SPFX-Webpart 作为静态团队选项卡。我手动构建了 list (就像这里 https://docs.microsoft.com/en-us/sharepoint/dev/spfx/w
我想简单地从字符串中提取名字。名字和姓氏用逗号分隔。 我知道这将涉及一个内置函数来查找逗号,然后提取逗号后的所有字符串。 我希望它显示在文本字段中。 public _getUser() { //ge
我创建了带有自定义母版页的 Sharepoint 页面,我在其中部署了需要一些 javascript 文件的 SPFx Webpart。 有时 Webpart 工作正常,但有时不是因为我在 DOM 上
我将 Angular 5 与 SharePoint SPFX 框架结合使用。页面上的多个 webpart 一切都很好,没问题,但我如何包含 Polyfills?我尝试包含在外部的 js 文件中,但没有
我引用这样的 CSS 和 JS 文件: SPComponentLoader.loadCss('../node_modules/slick-carousel/slick/slick.css');
我在使用动态 UI 渲染 React 时遇到问题。 我发现我的一个组件行为异常。 我有一个带有通过 props 获取的数组属性的对象。 该对象类似于以下内容 对象: { title: "title
我的表单上有一个文本字段(A) (Fabric UI)。我有一个 coachMark(Fabric UI),如果文本字段(A)为空,它会出现在按钮上方。 我遇到的问题是,当从 TextField(A)
这个问题与之前在 StackOverflow 上提出的一个问题非常相似。但是,我得到的错误是不同的。 AadHttpClient fails when loading SP page with SPF
我们正在使用 Office UI Fabric React 为 O365 通信站点开发现代 Web 部件。我想使用新的基于 ts 的方法来设计我的组件 (see here) 。一切都运行良好,只是它没
我最近接触SPFx的不多,所以我想我需要学习一下,:) 我想在这里使用这个 NPM 包: https://www.npmjs.com/package/azure-search 进入一个基本的新 SPF
我正在尝试申请 渲染中的代码块,但前提是 this.state.ContextNewJobFade 为 false。 我已阅读 How do I conditionally wrap a React
我的 typescript 文件包含以下导入: import { SPComponentLoader } from '@microsoft/sp-loader'; 但是我在使用 webpack 构建时
我正在关注 this blog在 SPFX 部分实现 fluentUI,但在执行“Gulp Build”时出现以下错误: Error - [tsc] node_modules/@fluentui/re
我有一个父类组件和一个子类。 child 将成为 中的页脚组件。 (MS 结构用户界面)。问题是我试图在模态底部保持静态的上一个和下一个按钮相对于模态中的内容移动。详细地说,它们紧贴在它们所在页面的
我正在尝试为 Sharepoint SPFX Web 部件安装 Node js 和 npm。( Node 版本:v14.4.0,Npm 版本:6.14.5)。 当我尝试“gulp trust-dev-
我有一个使用 knockoutJS 的 Sharepoint 框架项目 (SPFx),其中应用程序将尝试使用 Excel Rest API 从存储在 Sharepoint 在线站点的 sharepoi
假设我创建了一个 Azure AD 应用程序并为其提供了必要的图形权限(应用程序权限)。 我想编写一段代码,通过共享点页面/自定义操作在 Microsoft Teams 中创建团队。 例如: POST
我是一名优秀的程序员,十分优秀!