빌드 파일 토스앱 qr 테스트 실행 안됨

{
  "name": "",
  "private": true,
  "scripts": {
    "dev": "granite dev",
    "build": "granite build",
    "test": "jest --passWithNoTests",
    "typecheck": "tsc --noEmit",
    "lint": "eslint . --ext .ts,.tsx --fix",
    "format": "prettier --write .",
    "adb": "adb reverse tcp:8081 tcp:8081 && adb reverse tcp:8000 tcp:8000"
  },
  "dependencies": {
    "@apps-in-toss/framework": "^1.2.1",
    "@granite-js/native": "0.1.21",
    "@granite-js/react-native": "0.1.21",
    "@shopify/flash-list": "^1.7.1",
    "@tanstack/react-query": "^5.55.0",
    "@toss-design-system/react-native": "^1.2.1",
    "axios": "^1.11.0",
    "jotai": "^2.8.3",
    "react": "18.2.0",
    "react-native": "0.72.6",
    "react-native-shadow-2": "^7.1.2",
    "zod": "^3.24.4"
  },
  "devDependencies": {
    "@babel/core": "7.23.9",
    "@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-class-properties": "^7.23.3",
    "@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-env": "0.1.21",
    "@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",
    "@typescript-eslint/eslint-plugin": "^8.39.0",
    "@typescript-eslint/parser": "^8.39.0",
    "babel-plugin-module-resolver": "^5.0.2",
    "eslint": "^9.32.0",
    "eslint-config-prettier": "^10.1.8",
    "eslint-plugin-prettier": "^5.5.3",
    "eslint-plugin-unused-imports": "^4.1.4",
    "jest": "^29.7.0",
    "prettier": "^3.6.2",
    "react-test-renderer": "18.2.0",
    "typescript": "^5.8.3"
  }
}

저번 배포 때 시간이 촉박하여 granite migration 을 미루다가 이제 migration 을 진행했습니다.

local에서 실행할 땐 문제없이 잘 동작하고 있는데 앱 빌드 후 토스앱 QR 테스트 진행을 하려하면 검은 화면에서 넘어가지질 않습니다.

이전에 email.js 때문에 runtime error가 났었는지 같은 현상 있었었는데 혹시 호환이 안되는 패키지가 또 있을지 궁금하여 문의 남깁니다.

또 이런 경우에 따로 log를 찍으시는지도 궁금합니다.

혹시 pnpm으로 패키지를 설치하셨다면, npm으로 바꿔서 설치해보세요.
저도 같은 문제가 있었는데, npm으로 설치하니 해결되었습니다!

감사합니다!

pnpm 사용중이었어서 npm으로 한 번 시도해볼게요!

pnpm 문제가 맞네요.

감사합니다!

1개의 좋아요