I ran into a problem after switching to a new version1.0.0-rc.0 in my project
See original GitHub issueSteps to Reproduce (for bugs)
- I switched to the new version v1.0.0-rc.0
- changed all the way to new. example:
import { withStyles } from "@material-ui/core/styles";
- and my project started to give an error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it’s defined in, or you might have mixed up default and named imports.
installed using yarn install@material-ui/core old version deleted
Your Environment
Tech | Version |
---|---|
Material-UI | 1.0.0-rc.0 |
React | 16.3.2 |
browser | Chrome v66.0.3359.139 |
{
"name": "react-chat",
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^1.0.0-rc.0",
"@material-ui/icons": "^1.0.0-rc.0",
"classnames": "^2.2.5",
"material-ui": "^1.0.0-beta.47",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-router-dom": "^4.2.2",
"react-scripts": "1.1.4",
"typeface-roboto": "^0.0.54"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
I ran into a problem after switching to a new version1.0.0-rc.0 ...
Steps to Reproduce (for bugs) I switched to the new version v1.0.0-rc.0 changed all the way to new. example: import { withStyles }...
Read more >Visual Studio ran into an unexpected problem with "Project ...
After upgrading to VS 16.5.4 from 16.5.3 and error started to come up each time i load my solution which didn't happen in...
Read more >framework version upgrade causing problem to my project
I ran into a similar issue. The trick was. Quit all iOS simulators; Let Xcode install the newest iOS simulators; Run the project...
Read more >Error restoring nuget packages after upgrade to v6.0.0-rc.3 ...
I upgraded my rc.2 project to rc.3 using the 5.3.4 version of the CLI and the switch-to-preview command. After it updated the package...
Read more >ArcGIS Pro v3.0.0 "Project Save Error" - Failed to Save Project
The issue only occurs after upgrading ArcGIS Pro to v3.0.0. New projects that are created from scratch in v3.0.0 are able to be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vladseverin You might have forgotten some imports. Don’t miss our codemod to fix all the occurrences: https://github.com/mui-org/material-ui/blob/master/packages/material-ui-codemod/README.md#import-path.
@oliviertassinari Thanks for the link, solved the problem by automatically changing paths