Skip to content

Module not found: Error: Can't resolve '@mui/material/Button' in version 4.0.1 #44

@JonesJugHead

Description

@JonesJugHead

Describe the bug
When attempting to run our project using version 4.0.1 of mui-color-input, we encounter the following error:

Module not found: Error: Can't resolve '@mui/material/Button' in 'C:\Repo\Sparkle\krigis-frontend\node_modules\mui-color-input\dist'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@mui/material/Button' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to mui-color-input version 4.0.1.
  2. Run the project.

Expected behavior
The project should compile and run without errors, as it does with version 4.0.0 of mui-color-input.

Additional context
We are currently using the following MUI versions:

"@mui/icons-material": "^5.15.10",
"@mui/lab": "^5.0.0-alpha.165",
"@mui/material": "^5.15.10",
"@mui/system": "^5.15.9",
"@mui/x-data-grid": "^6.19.4",
"@mui/x-data-grid-pro": "^6.19.4",
"@mui/x-date-pickers": "^7.0.0",
"@mui/x-date-pickers-pro": "^7.0.0",

Version 4.0.0 of mui-color-input works without any issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions