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

时间:2021-06-06 13:21:11

标签: react-native graphql-tag

这就是在我的应用程序中导入 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

0 个答案:

没有答案