Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

createSvgIcon refactor in @material-ui 4.9.9 breaking builds #1619

@Kauabunga

Description

@Kauabunga
Tech Version
@material-ui/pickers v4.0.0-alpha.4
material-ui v4.9.9

Expected behavior

Use createSvgIcon from utils export

import { createSvgIcon } from '@material-ui/core/utils';

instead of

import createSvgIcon from '@material-ui/core/internal/svg-icons/createSvgIcon';

@ https://github.com/mui-org/material-ui-pickers/blob/574944acbb6e3918803914078674d9d815fc260c/lib/src/_shared/icons/ArrowDropDownIcon.tsx#L2

Actual behavior

Module not found: Can't resolve '@material-ui/core/internal/svg-icons/createSvgIcon' in '/.../node_modules/@material-ui/pickers'

Refactored utility createSvgIcon in latest material-ui version breaks pickers svgs. This has been removed from the internal path in the following commit

mui/material-ui@8ea2df8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions