Sdk업데이트 후 빌드시 최신 버전 적용 안됨

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

질문 / 문제 해결

내용을 설명해주세요

업데이트 후 빌드하면 최신 버전이아닌 이전 버전으로 QR이 만들어지는데 매번 빌드 파일 삭제해야하는걸까요…

이렇게 하면 되긴합니다..:sob:

rm -rf build
npm run build

안녕하세요 :slight_smile:
혹시 자세한 재현 과정을 알 수 있을까요 ?!
웹뷰로 개발중이시죠 ?

넵! 현재 웹뷰로 개발 중이며, 기존에는 npm run build 실행 시 항상 최신 버전으로 빌드되었습니다.
하지만 SDK 업데이트 이후에는 최신 버전이 반영되지 않는 문제가 발생하고 있습니다.

현재는 항상 빌드 전에 기존 빌드 파일을 삭제한 후 다시 빌드하는 방식으로 진행하고 있습니다 :smiling_face_with_tear:
빌드시 이전 빌드 내용이 적용되는거 같습니다 - bjkim 님의 게시물 #2 이 문의도 동일한 증상이신거같습니다..!

"dependencies": {
    "@apps-in-toss/web-framework": "^2.0.5",
    "@emotion/react": "^11.14.0",
    "@granite-js/plugin-router": "0.1.21",
    "@sentry/react": "^10.32.1",
    "@tanstack/react-query": "^5.81.5",
    "@testing-library/dom": "^10.4.0",
    "@testing-library/jest-dom": "^6.6.3",
    "@testing-library/react": "^16.3.0",
    "@testing-library/user-event": "^13.5.0",
    "@toss/tds-mobile": "^2.2.1",
    "@toss/tds-mobile-ait": "^2.2.1",
    "@toss/tds-mobile-migration": "^2",
    "@tossteam/toss-app-bridge": "^4.278.0",
    "@types/jest": "^27.5.2",
    "@types/node": "^16.18.126",
    "axios": "^1.10.0",
    "dayjs": "^1.11.13",
    "motion": "^12.23.0",
    "pdfjs-dist": "^3.11.174",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-error-boundary": "^6.0.0",
    "react-pdf": "^7.7.3",
    "react-router-dom": "^7.6.3",
    "react-scripts": "5.0.1",
    "styled-components": "^6.1.19",
    "typescript": "^4.9.5",
    "web-vitals": "^2.1.4",
    "zustand": "^5.0.6"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "ait build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "dev": "granite dev",
    "deploy": "ait deploy",
    "migration": "ait migrate granite"
  },
export default defineConfig({
  appName: "self-care",
  brand: {
    displayName: "self-care",
    primaryColor: "#3182F6",
    icon: "이미지 주소",
  },
  web: {
    host: "ip주소",
    port: 3000,
    commands: {
      dev: "npm start",
      build: "react-scripts build",
    },
  },
  navigationBar: {
    initialAccessoryButton: {
      id: 'home',
      title: 'Home',
      icon: {
        name: 'icon-house-mono',
      },
    },
  },
  webViewProps: {
    pullToRefreshEnabled: false,
  },
  permissions: [],
  outdir: "build",
});