I had a problem with importing "@material-ui/core" to my react/typescript/webpack app. Always when I ran
webpack --config webpack.config.js
it failed with error
Cannot find module '@material-ui/core'
The same error was also underlined in the Visual Studio Code.
My index.tsx looked like this
import React from "react";
import ReactDOM from 'react-dom';
import { Button } from "@material-ui/core";
function App() {
return <Button>Hi dudes</Button>
}
ReactDOM.render(<App />, document.getElementById("root"));