From 25580ebb859b32725e8454860caaa3a9fa345a1a Mon Sep 17 00:00:00 2001 From: Prateek Date: Mon, 16 Feb 2026 22:27:38 +0530 Subject: [PATCH] fix: clean Next.js build artifacts in setup script Add cleanup step to remove packages/web/.next directory before building. This prevents "Cannot find module" errors from stale webpack artifacts that can occur after rebasing or switching branches. The cleanup step ensures a clean build every time the setup script runs. Co-Authored-By: Claude Sonnet 4.5 --- scripts/setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index 2d495a38c..6c5672650 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -16,6 +16,9 @@ fi echo "๐Ÿ“ฆ Installing dependencies..." pnpm install +echo "๐Ÿงน Cleaning stale build artifacts..." +rm -rf packages/web/.next + echo "๐Ÿ”จ Building all packages..." pnpm build