fix(ci): use webpack build to fix E2E TypeError in production mode - #276
Conversation
…pack) Next.js 16 auto-enables Turbopack when a `turbopack:` key exists in next.config.ts. The CI workflow was running `npx next build` which used Turbopack, causing `TypeError: a is not a function` in E2E tests because Turbopack bundles the connection module differently than webpack. The app's build script already specifies `--webpack` explicitly. CI should use `npm run build` to match. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 3 minutes and 13 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
…pack) (#276) Next.js 16 auto-enables Turbopack when a `turbopack:` key exists in next.config.ts. The CI workflow was running `npx next build` which used Turbopack, causing `TypeError: a is not a function` in E2E tests because Turbopack bundles the connection module differently than webpack. The app's build script already specifies `--webpack` explicitly. CI should use `npm run build` to match. Co-authored-by: alfredorubin96 <alfredo.rubin@neotechnology.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>



Summary
npx next buildwhich defaults to Turbopack in Next.js 16 (becauseturbopack:key exists in config)TypeError: a is not a functionin all parameter-related E2E testsnpm run buildwhich explicitly passes--webpackThis fixes the pre-existing E2E failures on
release/1.0that were blocking PRs #273, #274, #275.Test plan
npm run build🤖 Generated with Claude Code