이 글의 성격은 무엇인가요?
질문 / 문제 해결
내용을 설명해주세요
안녕하세요. 웹뷰 환경 SDK 2.0.1 마이그레이션 관련 문의드립니다.
방법으로 안내된 ait migrate react-native-0-84-0 은 react-native를 사용하는 앱에 대해서만 적용이 되는 건가요? 웹뷰의 경우에는 @apps-in-toss/web-framework의 버전을 2.0.1으로 업데이트하고 빌드 커맨드만 바꾸면 되나요?
@Amad 님 안녕하세요
넵 맞습니다. 말씀주신 명령어는 RN에만 해당되며, 웹뷰에서는 SDK 를 2.0.1로 업데이트 및 빌드 커맨드만 변경해주시면 됩니다.
자세한 내용은 가이드 참고 부탁드립니다.
@seonjeong 님, 가이드 문서에서는 react를 19 버전으로 업그레이드 하라고 되어있는데, @toss/tds-mobile와 @toss/tds-mobile-ait은 react 18까지만 지원되는 것 같아 샌드박스로 실행 시 화면이 나타나지 않고 있습니다, 아래 package.json 첨부드립니다.
{
“name”: “”,
“private”: true,
“version”: “0.0.0”,
“type”: “module”,
“scripts”: {
“dev”: “granite dev”,
“build”: “ait build”,
“lint”: “eslint \“src/**/*.{ts,tsx}\” --fix”,
“preview”: “vite preview”,
“deploy”: “ait deploy”
},
“dependencies”: {
“@apps-in-toss/web-framework”: “2.0.1”,
“@emotion/react”: “^11.14.0”,
“@emotion/styled”: “^11.14.1”,
“@granite-js/plugin-router”: “1.0.4”,
“@tanstack/react-query”: “^4.42.0”,
“@toss/tds-colors”: “^0.1.0”,
“@toss/tds-mobile”: “^2.2.0”,
“@toss/tds-mobile-ait”: “^2.2.0”,
“axios”: “^1.13.2”,
“jotai”: “^2.16.1”,
“react”: “^19.2.3”,
“react-dom”: “^19.2.3”,
“react-router-dom”: “^6.30.2”,
“vite-tsconfig-paths”: “^5.1.4”
},
“devDependencies”: {
“@types/react”: “^19.2.3”,
“@types/react-dom”: “^19.2.3”,
“@vitejs/plugin-react”: “^5.1.2”,
“eslint-plugin-react-hooks”: “^5.2.0”,
“eslint-plugin-react-refresh”: “^0.4.26”,
“vite”: “^7.3.0”
}
}