Apollo-link-rest: ์•„ํด๋กœ / ํด๋ผ์ด์–ธํŠธ / ์ฝ”์–ด ๋ˆ„๋ฝ

์— ๋งŒ๋“  2020๋…„ 03์›” 17์ผ  ยท  2์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: apollographql/apollo-link-rest

React Native๋กœ ์•ฑ์„ ๊ฐœ๋ฐœ ์ค‘์ž…๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ๋‹ค์Œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

์˜ค๋ฅ˜ : ์‹คํŒจ๋ฅผ ๋ฒˆ๋“ค ํ•ด๊ฒฐ ๋ชจ๋“ˆ์— ์—†์Šต๋‹ˆ๋‹ค @apollo/client/core ์—์„œ node_modules/apollo-link-rest/restLink.js @ ์•„ํด๋กœ / ํด๋ผ์ด์–ธํŠธ / ํ•ต์‹ฌ ํ”„๋กœ์ ํŠธ ๋‚ด์—์„œ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

๋‚ด ํŒจํ‚ค์ง€ json์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
`` "dependencies": { "@react-native-community/async-storage": "1.8.1", "@react-native-community/masked-view": "0.1.7", "@react-native-community/netinfo": "5.5.1", "@react-native-community/push-notification-ios": "1.0.7", "@react-native-firebase/app": "6.3.4", "@react-native-firebase/crashlytics": "6.3.4", "@react-native-firebase/messaging": "6.3.4", "@react-navigation/bottom-tabs": "5.1.1", "@react-navigation/native": "5.0.9", "@react-navigation/stack": "5.1.1", "@types/react-native-push-notification": "3.0.8", "@types/react-redux": "7.1.7", "apollo": "^2.25.0", "apollo-cache-inmemory": "^1.6.5", "apollo-client": "^2.6.8", "apollo-link": "^1.2.13", "apollo-link-rest": "^0.8.0-beta.0", "base-64": "0.1.0", "crypto-js": "3.3.0", "graphql": "^14.6.0", "graphql-anywhere": "^4.2.6", "graphql-tag": "^2.10.3", "patch-package": "6.2.1", "qs": "^6.9.1", "react": "16.13.0", "react-apollo": "^3.1.3", "react-native": "0.61.5", "react-native-gesture-handler": "1.6.0", "react-native-gifted-chat": "0.13.0", "react-native-push-notification": "3.1.9", "react-native-reanimated": "1.7.0", "react-native-safe-area-context": "0.7.3", "react-native-screens": "2.3.0", "react-native-splash-screen": "3.2.0", "react-redux": "7.2.0", "redux": "4.0.5", "redux-persist": "6.0.0", "requirejs": "2.3.6", "styled-components": "5.0.1" }, "devDependencies": { "@types/jest": "25.1.3", "@types/react-native": "0.61.17", "@types/react-test-renderer": "16.9.2", "@types/styled-components": "5.0.1", "@typescript-eslint/eslint-plugin": "2.21.0", "@typescript-eslint/parser": "2.21.0", "babel-plugin-module-resolver": "4.0.0", "editorconfig-checker": "3.0.3", "eslint": "6.8.0", "eslint-config-tuil": "0.6.0", "husky": "4.2.3", "jest": "25.1.0", "metro-react-native-babel-preset": "0.57.0", "prettier": "1.19.1", "react-test-renderer": "16.13.0", "redux-devtools-extension": "2.13.8", "typescript": "3.8.2" }

help wanted ๐Ÿ›  questionโ”

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

Apollo-client 3 (๋ฒ ํƒ€)์—์„œ ์ž‘๋™ํ•˜๋Š” ๋ฒ ํƒ€ ๋ฒ„์ „์˜ apollo-link-rest๋ฅผ ์‚ฌ์šฉ์ค‘์ธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

apollo-link-rest 0.7.3์„ ์›ํ•˜๊ฑฐ๋‚˜ peerDepency ๊ฒฝ๊ณ ๋ฅผ ํ•ด๊ฒฐํ•ด์•ผ ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค!

https://github.com/apollographql/apollo-link-rest/releases

๋ชจ๋“  2 ๋Œ“๊ธ€

Apollo-client 3 (๋ฒ ํƒ€)์—์„œ ์ž‘๋™ํ•˜๋Š” ๋ฒ ํƒ€ ๋ฒ„์ „์˜ apollo-link-rest๋ฅผ ์‚ฌ์šฉ์ค‘์ธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

apollo-link-rest 0.7.3์„ ์›ํ•˜๊ฑฐ๋‚˜ peerDepency ๊ฒฝ๊ณ ๋ฅผ ํ•ด๊ฒฐํ•ด์•ผ ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค!

https://github.com/apollographql/apollo-link-rest/releases

์•ˆ๋…•ํ•˜์„ธ์š”, ๊ทธ์— ๋”ฐ๋ผ package.json์„ ์—…๋ฐ์ดํŠธํ–ˆ์ง€๋งŒ ์—ฌ์ „ํžˆ ๋™์ผํ•œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

Failed building JavaScript bundle.
Unable to resolve "@apollo/client/core" from "node_modules\apollo-link-rest\restLink.js"
{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "apollo-cache-inmemory": "^1.6.3",
    "apollo-client": "^2.6.8",
    "apollo-link": "^1.2.13",
    "apollo-link-rest": "^0.7.3",
    "date-fns": "^2.1.0",
    "expo": "~38.0.1",
    "expo-status-bar": "^1.0.0",
    "graphql": "^14.5.4",
    "graphql-anywhere": "^4.2.4",
    "graphql-tag": "^2.10.1",
    "qs": "^6.8.0",
    "react": "~16.11.0",
    "react-dom": "~16.11.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.0.tar.gz",
    "react-native-web": "~0.11.7"
  },
  "devDependencies": {
    "@babel/core": "^7.8.6",
    "babel-preset-expo": "~8.1.0"
  },
  "private": true
}

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰