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.

I ran into a problem after switching to a new version1.0.0-rc.0 in my project

See original GitHub issue

Steps to Reproduce (for bugs)

  1. I switched to the new version v1.0.0-rc.0
  2. changed all the way to new. example: import { withStyles } from "@material-ui/core/styles";
  3. 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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
oliviertassinaricommented, May 14, 2018

@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.

0reactions
vlxdisluvcommented, May 15, 2018

@oliviertassinari Thanks for the link, solved the problem by automatically changing paths

Read more comments on GitHub >

github_iconTop 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 >

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