react native graphql-tag TypeError: Object is not a function (near '...(0, _graphqlTag.default)...')

这就是在我的应用程序中导入 gql 的方式

import gql from "graphql-tag";

但仍然收到此错误

[Sun Jun 06 2021 15:12:57.243]  ERROR    TypeError: Object is not a function (near '...(0,_graphqlTag.default)...')
[Sun Jun 06 2021 15:12:57.243]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Sun Jun 06 2021 15:12:57.244]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

error image

xunying_1 回答:react native graphql-tag TypeError: Object is not a function (near '...(0, _graphqlTag.default)...')

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/299693.html

大家都在问