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",
์์ ์๋ํ์ง ์์ต๋๋ค.