当升级到 Apollo Client 2.5 时,我们在尝试在 React Native 环境中运行打包程序时遇到了依赖问题:
error: bundling failed: Error: Unable to resolve module `graphql-anywhere/lib/async` from `<redacted>/node_modules/apollo-link-state/lib/bundle.umd.js`: Module `graphql-anywhere/lib/async` does not exist in the Haste module map
我们已尝试安装graphql-anywhere
来解决此问题,但无济于事。
@benjamn对此有何动静? 我真的希望升级到 2.5 以(希望)解决一些链接状态问题。
对于所有正在观看此内容的人,这已在 Apollo Client 2.5.1 中修复
重新安装后它停止工作:
由于某种原因,graphql-anywhere 无法安装(node_modules 中没有目录)。 例子:
https://codesandbox.io/s/2zxv78oyrp
如果您手动安装它( npm i graphql-anywhere
)它会再次工作
它在"@apollo/client": "^3.0.0-beta.43",
中不起作用
在"@apollo/client": "^3.1.0"
上有同样的问题
最有用的评论
它在
"@apollo/client": "^3.0.0-beta.43",
中不起作用