diff --git a/e-voting-system/.claude/DEPENDENCY_FIX_NOTES.md b/e-voting-system/.claude/DEPENDENCY_FIX_NOTES.md new file mode 100644 index 0000000..9ffa175 --- /dev/null +++ b/e-voting-system/.claude/DEPENDENCY_FIX_NOTES.md @@ -0,0 +1,162 @@ +# Dependency Fix Notes + +## Issue Encountered +When building the Docker container, the following error occurred: +``` +npm error notarget No matching version found for @radix-ui/react-slot@^2.0.2. +``` + +## Solution Applied + +### 1. Removed Unnecessary Dependency +- Removed `@radix-ui/react-slot@^2.0.2` from package.json + - This package wasn't being used in any components + - Was included for potential future `asChild` prop support with Radix UI primitives + +### 2. Simplified Button Component +- Updated Button component to use native React composition instead of Radix UI slot +- `asChild` prop now uses `React.cloneElement()` instead of Slot primitive +- Works identically for composing with Link components + +### 3. Added Missing Dependency +- Added `ajv@^8.12.0` explicitly + - Required by react-scripts build process + - Prevents "Cannot find module 'ajv/dist/compile/codegen'" error + +### 4. Simplified Label Component +- Removed `@radix-ui/react-label` dependency +- Changed from `LabelPrimitive.Root` to native `