I have a project with this package.json
{
"name": "grid",
"version": "0.1.0",
"private": true,
"dependencies": {
"@devexpress/dx-react-core": "^1.2.0",
"@devexpress/dx-react-grid": "^1.2.0",
"@devexpress/dx-react-grid-material-ui": "^1.2.0",
"@material-ui/core": "^1.0.0",
"@material-ui/icons": "^1.0.0",
"ajv-keywords": "^3.2.0",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-utilities": "^0.6.0"
},
"devDependencies": {
"react-scripts": "1.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
but when I run my project I get this error:
./node_modules/@devexpress/dx-react-grid-material-ui/dist/dx-react-grid-material-ui.es.js
Module not found: Can't resolve 'material-ui/Button' in '/test/react-test/grid/node_modules/@devexpress/dx-react-grid-material-ui/dist'
Can you help me to fix the problem?
I have the same problem. material-ui moved to @material-ui/core in rc.0 The new import path for Button should be @material-ui/core/Button
https://github.com/mui-org/material-ui/releases/tag/v1.0.0-rc.0
Downgrading material-ui to pre rc.0 should fix your problem for now.
Note that in your package.json it will be material-ui instead of @material-ui/core when downgrading below rc.0.
See #1097
dear mdsmith00, are you planing to use material-ui 1.0? if answer is yes, when ? Thank you and best regards
Hi,
We already support the new material-ui packages. Find more information at: #1073
Same problem with me too.
Following is my packages.json
"@devexpress/dx-react-core": "^1.2.0",
"@devexpress/dx-react-grid": "^1.2.0",
"@devexpress/dx-react-grid-bootstrap4": "^1.2.0",
"@devexpress/dx-react-grid-material-ui": "^1.2.0",
"@material-ui/core": "^1.0.0",
"@material-ui/icons": "^1.0.0",
And i am getting following error where i am using Grid
./node_modules/@devexpress/dx-react-grid-material-ui/dist/dx-react-grid-material-ui.es.js
Module not found: Can't resolve 'material-ui/Button' in '/path/to/my/app/node_modules/@devexpress/dx-react-grid-material-ui/dist'
So is this fixed or not? I am getting the exact same error as @karthikdivi
We still have the problem, As a temporary workaround we moved to bootstrap theming.
We will come back once this library moved to @material-ui/core: 1.0.0
@karthikdivi it works perfectly fine if you update your dependancies like so:
"@devexpress/dx-react-core": "^1.3.0-beta.2",
"@devexpress/dx-react-grid": "^1.3.0-beta.2",
"@devexpress/dx-react-grid-material-ui": "^1.3.0-beta.2",
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.
Most helpful comment
Same problem with me too.
Following is my packages.json
And i am getting following error where i am using Grid