hamed hossani
hamed hossani

Reputation: 1002

How can i resolve this error in React+Material UI?

I'm getting the following error while tried to webpack the application in windows 10 x64 b.

ERROR in ./node_modules/material-ui/styles/withStyles.js
Module not found: Error: Can't resolve '@babel/runtime/core-js/map' 

I searched on the github and stackoverflowbut don't find proper answer.

my Material UI is "material-ui": "^1.0.0-beta.47",. and "@babel/runtime": "^7.1.5",.

I see this and try that solutions. 1-npm install @babel/runtime 2-npm install @material-ui/core but I also have the error. How can i resolve this?

Upvotes: 0

Views: 930

Answers (1)

hamed hossani
hamed hossani

Reputation: 1002

this is my answer https://github.com/babel/babel/issues/9026

The material-ui beta package is deprecated and buggy, hence the issue here. You should change to a stable version of @material-ui/core.

Upvotes: 1

Related Questions