Material-ui: 'Error: ENOENT: no such file or directory, open' when migrating from Material UI v1.0.0-beta.43 to v1.2.1

Created on 18 Jun 2018  路  5Comments  路  Source: mui-org/material-ui

[./node_modules/react-event-listener/lib/index.js] 191 bytes {main} [built] [failed] [1 error]
+ 2815 hidden modules

ERROR in ./node_modules/@material-ui/core/node_modules/react-event-listener/dist/react-event-listener.cjs.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/kunal/src/node_modules/@material-ui/core/node_modules/react-event-listener/dist/react-event-listener.cjs.js'
@ ./node_modules/@material-ui/core/ClickAwayListener/ClickAwayListener.js 30:49-80
@ ./node_modules/@material-ui/core/ClickAwayListener/index.js
@ ./node_modules/@material-ui/core/index.es.js
@ ./app/components/Home/Navtab.js
@ ./app/components/Home/index.js
@ ./app/components/App.js
@ ./app/index.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:8648 ./app/index.js

ERROR in ./node_modules/@material-ui/core/node_modules/warning/warning.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/kunal/src/node_modules/@material-ui/core/node_modules/warning/warning.js'
@ ./node_modules/@material-ui/core/styles/createGenerateClassName.js 10:38-56
@ ./node_modules/@material-ui/core/styles/index.js
@ ./app/components/App.js
@ ./app/index.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:8648 ./app/index.js

ERROR in ./node_modules/@material-ui/icons/node_modules/recompose/pure.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/kunal/src/node_modules/@material-ui/icons/node_modules/recompose/pure.js'
@ ./node_modules/@material-ui/icons/utils/createSvgIcon.js 12:35-60
@ ./node_modules/@material-ui/icons/AccessAlarm.js
@ ./node_modules/@material-ui/icons/index.es.js
@ ./app/components/App.js
@ ./app/index.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:8648 ./app/index.js

ERROR in ./node_modules/react-event-listener/lib/index.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/kunal/src/node_modules/react-event-listener/lib/index.js'
@ ./node_modules/material-ui/utils/ClickAwayListener.js 47:26-57
@ ./node_modules/material-ui/index.es.js
@ ./app/components/VenueMaster/venuemaster.js
@ ./app/components/Home/index.js
@ ./app/components/App.js
@ ./app/index.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:8648 ./app/index.js
Child html-webpack-plugin for "index.html":
1 asset

incomplete

Most helpful comment

Did you rerun webpack after npm/yarn install?

All 5 comments

Did you rerun webpack after npm/yarn install?

@kunalb93 We need a reproduction repository to really help. I'm closing. In the meantime, check @TrySound comment out 馃憤 .

@TrySound How does one rerun webpack?

For any stragglers, this proved to be random node module causing this. https://github.com/firebase/firebaseui-web-react

I un/re installed and it works now

@TrySound How does one rerun webpack?

This also confused me. I just re-started the development server "npm start" in most create-react apps and then it worked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anthony-dandrea picture anthony-dandrea  路  3Comments

revskill10 picture revskill10  路  3Comments

rbozan picture rbozan  路  3Comments

pola88 picture pola88  路  3Comments

finaiized picture finaiized  路  3Comments