question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attempted import error: 'fade' is not exported from '@material-ui/core/styles'.6

See original GitHub issue

Full error:

Failed to compile ./node_modules/@material-ui/lab/esm/PaginationItem/PaginationItem.js Attempted import error: ‘fade’ is not exported from ‘@material-ui/core/styles’.

  • The issue is present in the latest release.
  • [ x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

I get this error when loading a default create-react-app app with @material-ui/core@next

Expected Behavior 🤔

Should just work I think!

Steps to Reproduce 🕹

Steps:

  1. create-react-app test
  2. npm install @material-ui/core@next
  3. npm start

Your Environment 🌎

System: OS: Linux 5.11 Manjaro Linux Binaries: Node: 16.1.0 - /usr/bin/node Yarn: 1.22.10 - /usr/bin/yarn npm: 7.16.0 - /usr/bin/npm Browsers: Chrome: Not Found Firefox: Not Found npmPackages: @material-ui/core: ^5.0.0-alpha.36 => 5.0.0-alpha.36 @material-ui/private-theming: 5.0.0-alpha.35 @material-ui/styled-engine: 5.0.0-alpha.34 @material-ui/system: 5.0.0-alpha.36 @material-ui/types: 6.0.1 @material-ui/unstyled: 5.0.0-alpha.35 @material-ui/utils: 5.0.0-alpha.35 @types/react: 17.0.11 react: 17.0.2 react-dom: 17.0.2

</details>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
siriwatknpcommented, Jun 11, 2021

@AlvesJorge thanks for reporting the issue, from what I look fade is changed to alpha in v5.0.0-alpha.12

If you can provide the repo, that would be great. I can take a look on it.

1reaction
SnappyWebDesigncommented, Jun 11, 2021

You should import it like this import { fade } from "@material-ui/core/styles/colorManipulator"

Read more comments on GitHub >

github_iconTop Results From Across the Web

'fade' is not exported from '@material-ui/core/styles' - Stack ...
Tried every possible solutions I found in internet.
Read more >
Attempted import error: 'fade' is not exported from '@material ...
The issue is present in the latest release. I have searched the issues of this repository and believe that this is not a...
Read more >
Migrating to v5: getting started - Material UI - MUI
If you are using a React version below 17.0.0, update your packages to at least v4.11.2 for Material UI and v17.0.0 for React....
Read more >
How to Fix Attempted Import Error Switch is Not Exported From ...
Command:- npm install react-router-dom@5.3.0In This Video We Will See How to Fix Attempted Import Error Switch is Not Exported From ...
Read more >
@material-ui/core - npm
Author message: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found