Skip to content

Conversation

Copy link

Copilot AI commented Jan 27, 2026

MUI v6 Upgrade Plan

  • Update root package.json to use MUI v6 dependencies
    • Update @mui/material from 5.16.7 to 6.5.0
    • Update @mui/icons-material from 5.16.7 to 6.5.0
    • Update @mui/x-date-pickers from 7.12.1 to 8.26.0
    • Update @mui/x-date-pickers-pro from 7.12.1 to 8.26.0
    • Update date-fns from 2.30.0 to 4.1.0 (required for MUI X v8)
  • Update peerDependencies in package packages
    • Update formik-mui package.json peer dependency for @mui/material to support v6
    • Update formik-mui-x-date-pickers package.json peer dependencies for @mui/material and @mui/x-date-pickers
  • Fix vitest configuration for MUI v6 ESM compatibility
    • Add resolve conditions for proper module resolution
    • Add server.deps.inline for @mui packages
  • Install dependencies and verify no conflicts
  • Run typecheck to verify TypeScript compatibility
  • Run builds to ensure packages compile correctly
  • Update test snapshots to match MUI v6 changes
  • Run linting to ensure code quality
  • Code review and security check completed
  • Revert unnecessary formatting changes

Summary

Successfully upgraded formik-mui to support MUI v6:

  • All packages build successfully
  • All tests pass (13 tests in formik-mui, 13 tests in formik-mui-x-date-pickers)
  • No security vulnerabilities found in new dependencies
  • Linting passes
  • TypeScript compilation succeeds

The main changes include:

  1. Dependency upgrades with backward compatibility maintained via peer dependencies
  2. Vitest configuration updates to handle MUI v6's ESM module structure
  3. Test snapshot updates to reflect MUI v6's rendering changes
  4. Reverted unnecessary formatting changes in date picker interface definitions
Original prompt

Upgrade project to mui 6


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Upgrade project to MUI 6 Upgrade to MUI v6 Jan 27, 2026
Copilot AI requested a review from cliedeman January 27, 2026 22:20
import { createErrorHandler } from './errorHandler';

export interface DatePickerProps
extends FieldProps,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the uncessary formatting. Also handle the other places

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the formatting changes in all 12 date picker files (13465ae)

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