fix(web): transpilePackages 에 @next/third-parties 추가 (Turbopack Vercel build 회복)#611
Merged
Merged
Conversation
…l build 회복) Vercel build (dev/main/feature 전역) 가 \`Module not found: Can't resolve '@next/third-parties/google'\` 로 실패 중. Turbopack 의 subpath export 해석 회귀이며 vercel/next.js#58697 계열로 reported. \`transpilePackages\` 에 \`@next/third-parties\` 추가로 Turbopack 의 ESM resolution 우회. 로컬 \`next build\` 에서 검증 (Compiled successfully in 3.0min, @next/third-parties/google 더 이상 resolve 실패 안 함). ## Why this works \`transpilePackages\` 는 monorepo 의 workspace 가 아닌 node_modules 패키지를 대상으로도 동작, Next.js 가 해당 모듈을 SWC/Turbopack 으로 transpile 하면서 subpath export 를 정상 풀어낸다. ## Alternative considered - @next/third-parties pin (next 16.2.1 ↔ @next/third-parties 16.2.6 mismatch) → caret range 가 같지만 Bun 이 다르게 resolve. pin 은 lockfile 갱신 부담. - next 16.2.6 upgrade → minor 영향 범위 커서 보류. ## Related - vercel/next.js#58697 — @next/third-parties module not found - handoff session 4: dev/main/feature 전역 Vercel fail 추적 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
…eo script
Vercel build TS step fail (\`Object literal may only specify known properties,
and 'useResearchInCopy' does not exist in type 'BuildShortFormPlanInput'\`)
해소.
\`buildShortFormPlan\` 의 \`BuildShortFormPlanInput\` type 은
\`{packet, variants, platform, durationSeconds}\` 4개만 받는다.
\`useResearchInCopy\` 는 어디서도 read 되지 않는 dead key — #592 작업 중 남은
leftover. 제거해도 동작 변화 없음.
본 PR (transpilePackages 추가) 와 함께 적용해야 Vercel build green 으로 전환.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
Update: Real Vercel blocker identifiedkiyori 가 공유한 Vercel build log 분석 결과 본 PR 의 #592 의 leftover dead key 제거 commit ( |
thxforall
added a commit
that referenced
this pull request
May 28, 2026
back-merge 로 \`MAGAZINE_STATUSES\` 에 'generating' 이 추가되면서 \`MagazineApprovalTable\` 의 \`STATUS_DOT: Record<...status, string>\` 가 key 누락으로 TS fail (확인: \`#611\` Vercel build log). \`generating\` 상태는 blue (\`bg-blue-400\`) 로 도트 색 부여 — pending/yellow, published/emerald, rejected/red 와 시각적 대비. 본 PR 의 back-merge 변경과 함께 적용해야 \`tsc\` green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
이전 deployment 가 'Restored build cache from previous deployment' 로 진행되어 구 dependency state 가 잔존했을 가능성. empty commit 으로 fresh build 트리거.
Vercel Hobby plan 의 Serverless Function maxDuration 제한 (1-60s) 위반으로 배포 실패: \`\`\` Builder returned invalid maxDuration value for Serverless Function \"api/v1/content/assets/video-jobs/[jobId]/compose\". Serverless Functions must have a maxDuration between 1 and 60 for plan hobby. \`\`\` 수정: - \`api/v1/content/assets/video-jobs/[jobId]/compose/route.ts\`: 600 → 60 - \`api/v1/content/assets/videos/route.ts\`: 300 → 60 긴 compose/video 작업은 background job 패턴 (\`/poll\` endpoint 와 함께) 으로 처리해야 함. Vercel Pro 업그레이드 시 원래 값 복원 가능 (Pro: 800s 까지). \#592 Video Pipeline 도입 시 누락된 Hobby 호환성 제약. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
Update — maxDuration 60s 캡 commit (
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Vercel build (dev/main/feature 전역) 의 `Module not found: Can't resolve '@next/third-parties/google'` 실패를 해소.
원인
Turbopack 의 subpath export 해석 회귀:
dist/google/index.js존재)Fix
`packages/web/next.config.js` 의 `transpilePackages` 에 `@next/third-parties` 추가.
```js
transpilePackages: ["@decoded/shared", "@next/third-parties"],
```
Next.js 가 해당 모듈을 SWC/Turbopack 으로 transpile 하면서 subpath export 를 정상 풀어냄.
로컬 검증
```
✓ Compiled successfully in 3.0min
```
TS step 에서 별도 type error (`MagazineApprovalTable.tsx` STATUS_DOT) 노출 — 본 PR scope 외, dev base 에선 발생 안 함 (#603 back-merge 머지 후 노출 → 후속 PR 로 `generating` key 추가).
Alternatives considered
Test plan
🤖 Generated with Claude Code