我有一个正在运行的加载 ListView 的 tsx 文件。该项目加载正常。我运行了以下命令
npm install @microsoft/sp-dialog
然后在 tsx 中添加了以下 import 语句。
从' @microsoft/sp-http '导入{ SPHttpClient };
当我使用 gulp build 时,我收到以下错误。
_Error - typescript - node_modules\@microsoft\sp-dialog\node_modules\@microsoft\sp-core-library\lib\deferredCl ass\DeferredClass.d.ts(25,24): 错误 TS1005: ';' 预期的。_
我可以看到错误指向 DeferredClass.ts 文件中的 abstract 关键字。我怎样才能解决这个问题?