EDIT: Just discovered that not one single module installed through npm install --save can be resolved. The issue seems to be therefore with all modules even though they are located inside node_modules folder.
I have been debugging this error for the last 2 hours. Note that the application has been created with create-react-app tool.
This is how I am importing the module:
import AppBar from "@material-ui/core/AppBar";
import Button from "@material-ui/core/Button";
import Icon from "@material-ui/core/Icon";
import IconButton from "@material-ui/core/IconButton";
import Tabs from "@material-ui/core/Tabs";
import Tab from "@material-ui/core/Tab";
This is the package.json snippet:
...
"dependencies": {
"@material-ui/core": "^1.5.1",
"@material-ui/icons": "^1.1.1",
...