@toss-design-system/react-native Reolve 오류

이 글의 성격은 무엇인가요?

질문 / 문제 해결

내용을 설명해주세요

최신 SDK 업데이트중에 “toss-design-system/react-native” 404 오류가 발생해서 TDS 가이드를 확인하니, "@toss/tds-react-native"로 변경된걸 확인하고 수정 하였습니다.

하지만 실행시마다 "“Can’t resolve ‘@toss-design-system/react-native’” 오류가 발생하고 있어 이곳에 문의 드립니다.

{
“name”: “treasurecomics”,
“private”: true,
“scripts”: {
“dev”: “granite dev”,
“build”: “granite build”,
“test”: “jest --passWithNoTests”,
“typecheck”: “tsc --noEmit”
},
“dependencies”: {
@apps-in-toss/framework”: “^1.4.3”,
@granite-js/native”: “0.1.21”,
@granite-js/plugin-env”: “0.1.21”,
@granite-js/plugin-router”: “0.1.21”,
@granite-js/react-native”: “0.1.21”,
@toss/tds-react-native”: “^1.3.8”,
“jwt-decode”: “^4.0.0”,
“react”: “^18”,
“react-native”: “0.72.6”,
“react-native-send-intent”: “^1.3.0”
},
“devDependencies”: {
@babel/core”: “7.23.9”,
@babel/plugin-proposal-class-properties”: “^7.16.7”,
@babel/plugin-proposal-nullish-coalescing-operator”: “^7.16.7”,
@babel/plugin-proposal-numeric-separator”: “^7.16.7”,
@babel/plugin-proposal-optional-chaining”: “^7.16.7”,
@babel/plugin-proposal-private-methods”: “^7.18.6”,
@babel/plugin-proposal-private-property-in-object”: “^7.18.6”,
@babel/plugin-transform-flow-strip-types”: “^7.19.0”,
@babel/preset-env”: “^7.15.0”,
@babel/preset-react”: “^7.16.7”,
@babel/preset-typescript”: “^7.16.7”,
@babel/runtime”: “7.18.9”,
@granite-js/plugin-router”: “0.1.21”,
@testing-library/react-native”: “^12.9.0”,
@types/babel__core”: “^7.20.5”,
@types/jest”: “^29.5.14”,
@types/node”: “^22.10.2”,
@types/react”: “18.3.3”,
“globals”: “^16.3.0”,
“jest”: “^29.7.0”,
“react-test-renderer”: “18.2.0”,
“typescript”: “^5.7.2”
},
“packageManager”: “yarn@1.22.22”,
“version”: “0.0.0”
}

appName (선택)

treasurecomics

node_module / dist 폴더 강제 삭제하고 새로 설치하니 정상 빌드 됩니다.

답변 감사합니다 :slight_smile: