Skip to content

Conversation

@jeremyeder
Copy link
Contributor

Summary

  • Remove duplicate route app/sessions/[id].tsx that conflicted with app/sessions/[id]/index.tsx
  • Update Expo SDK packages to resolve version mismatches with SDK 54
  • Update dev dependencies to SDK 54-compatible versions
  • Install expo-linear-gradient dependency required by react-native-gifted-charts
  • Resolve all npm security vulnerabilities

Problem

The app was crashing on launch with an Expo Router error:

Found conflicting screens with the same pattern. The pattern 'sessions/:id' 
resolves to both '__root > sessions > [id]/index' and '__root > sessions > [id]'

Root Cause

Both app/sessions/[id].tsx and app/sessions/[id]/index.tsx resolve to the same route pattern /sessions/:id in Expo Router, creating a conflict.

Solution

  • Deleted app/sessions/[id].tsx (standalone file)
  • Kept app/sessions/[id]/index.tsx (directory-based routing with proper nested structure for review flow)
  • Updated mismatched Expo packages using --legacy-peer-deps to resolve React version conflicts
  • Updated dev dependencies to SDK 54 compatible versions

Test Plan

  • App builds successfully for iOS simulator
  • App launches without routing errors
  • Metro bundler serves JavaScript correctly
  • No package version warnings
  • No security vulnerabilities
  • Mock SSE service and real-time updates working
  • Performance monitoring active

Changes

  • Deleted: app/sessions/[id].tsx
  • Updated: package.json - Expo SDK packages and dev dependencies
  • Updated: package-lock.json - Resolved dependencies

🤖 Generated with Claude Code

- Remove duplicate route file app/sessions/[id].tsx that conflicted with app/sessions/[id]/index.tsx
- Update Expo SDK packages to resolve version mismatches with SDK 54
- Update dev dependencies (@types/jest, @types/react, jest-expo) to SDK 54-compatible versions
- Install expo-linear-gradient dependency required by react-native-gifted-charts
- Resolve all npm security vulnerabilities

Fixes routing error: "Found conflicting screens with the same pattern"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@jeremyeder jeremyeder merged commit 57bfb48 into main Dec 8, 2025
1 check failed
@jeremyeder jeremyeder deleted the fix/routing-conflict-and-dependencies branch December 8, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants