GraphQL: Object doesn't support property or method 'from'

Posted time-is-life

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GraphQL: Object doesn't support property or method 'from'相关的知识,希望对你有一定的参考价值。

From: https://github.com/graphql/graphiql/issues/688 

 

psyCodelist commented 11 days ago

Hi,

Thank you in advance. Just wanted to let you know the the web interface not working on ie11.

looks like we need add Array.from polyfill: err: Object doesn‘t support property or method ‘from‘

Thanks again,

 
 
技术分享图片
 

kumarharsh commented 7 days ago

The best way to fix this is to use babel-polyfill in your code or bundle the Array.frmo polyfill with your codebase.

 
技术分享图片
 

psyCodelist commented 7 days ago

Thanks for the note, but graphiql UI code has nothing to do with our UI code base. We use poly-fill but again 2 different codebase.

 
技术分享图片
 

kumarharsh commented 6 days ago

You would be bundling the graphiql lib somehow. Just load the array polyfill too.

以上是关于GraphQL: Object doesn't support property or method 'from'的主要内容,如果未能解决你的问题,请参考以下文章

uiautomatorviewer 连接真机的时候报 com.android.ddmlib.SyncException :Remote object doesn't exits!

合并 Apollo 服务器的 GraphQL 解析器不使用 Object.assign()

'mysql.column_stats' doesn't exist and Table 'mysql.index_stats' doesn't exi

错误:无法使用来自另一个模块或领域的 GraphQLSchema“[object GraphQLSchema]”

在 graphql-tag 中定义 JSON/Object 类型

Bug? #1146 - Table 'xxx.xxxxx' doesn't exist