SPFx Graph API Internet Explorer语法错误 [英] SPFx Graph API Internet Explorer syntax error
问题描述
大家好...
将SPFX webpart部署到使用Internet Explorer 10中的图形api的经典页面时,文件中存在语法错误sp-http-adal。
它有一个"const"。打破Internet Explorer的变量。
步骤:
- 创建SPFX webpart
- 从SPFX上下文对象中获取图形客户端并调用图API
- 部署SPFX webpart
- 创建经典页面并添加IE部署到页面的网页部分
- IE开发工具将出现语法错误导致webpart无法正常工作
如何解决此问题?
嗨Clark,
这是由于在IE11中不支持的控制台调用,因此它会抛出异常,在GitHub中检查相同的问题提交更多详细信息:
AadHttpClient调用无法在IE 10,IE 11中运行
谢谢
最好的问候
Hi all
When deploying a SPFX webpart to a classic page which uses the graph api in internet explorer 10 there is a syntax error in the file sp-http-adal.
It has a "const" variable which breaks internet explorer.
Steps:
- Create SPFX webpart
- Get the graph client off the SPFX context object and make a call to the graph API
- Deploy SPFX webpart
- Create a classic page and add the webpart to the page in IE
- IE Dev tools will have the syntax error resulting in the webpart not working
How can i get this fixed?
Hi Clark,
This is caused with console call which is not supported in IE11, so it will throw exception, check the same issue submit in GitHub for more detailed information:
AadHttpClient calls not working in IE 10, IE 11
Thanks
Best Regards
这篇关于SPFx Graph API Internet Explorer语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!