Add --legacy-peer-deps to npm ci for react-scripts compatibility
react-scripts@5.0.1 has peer dependency on TypeScript 4.x but project uses TypeScript 5.x. The --legacy-peer-deps flag ignores this conflict. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
be119f85f7
commit
eb0ae08eac
1 changed files with 2 additions and 2 deletions
|
|
@ -179,9 +179,9 @@ fi
|
|||
log_info "Building frontend..."
|
||||
cd "$SCRIPT_DIR/frontend"
|
||||
|
||||
# Clean install dependencies
|
||||
# Clean install dependencies (--legacy-peer-deps handles react-scripts peer dep conflicts)
|
||||
log_info "Installing frontend dependencies..."
|
||||
npm ci || error_exit "npm ci failed"
|
||||
npm ci --legacy-peer-deps || error_exit "npm ci failed"
|
||||
|
||||
# Build production bundle
|
||||
log_info "Creating production build..."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue