Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@material-ui/core ^4.9.5 'memo' is not exported from 'react' #1510

Open
aeroxy opened this issue Mar 9, 2020 · 1 comment
Open

@material-ui/core ^4.9.5 'memo' is not exported from 'react' #1510

aeroxy opened this issue Mar 9, 2020 · 1 comment

Comments

@aeroxy
Copy link

aeroxy commented Mar 9, 2020

Using:

  "dependencies": {
    "@material-ui/core": "^4.9.5",
    "inferno": "^7.4.2",
    "inferno-compat": "^7.4.2",
    "inferno-scripts": "7.0.4"
  }

got:

Attempted import error: 'memo' is not exported from 'react' (imported as 'React').

App.js

import { version, Component } from 'inferno';
import MaterialButton from '@material-ui/core/Button';
import Logo from './logo';
import './App.css';

class App extends Component {
  render() {
    return (
      <div className="App">
        <header className="App-header">
          <Logo width="80" height="80" />
          <p>{`Welcome to Inferno ${version}`}</p>
          <p>
            Edit <code>src/App.js</code> and save to reload.
          </p>
          <MaterialButton
            variant="outlined"
            color="primary"
          >TEST</MaterialButton>
        </header>
      </div>
    );
  }
}

export default App;
@anthony-redFox
Copy link
Contributor

Duplicated #1443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants