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

时间:2023-03-09 02:54:37
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,

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

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.

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

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.

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

kumarharsh commented 6 days ago

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