red-gold / react-social-network

Simple React Social Network
https://medium.com/@qolzam/create-social-network-by-react-js-fe60010a32e6
MIT License
489 stars 485 forks source link

Cannot find module 'layouts/IconButtonElement'. #56

Closed rohan-paul closed 6 years ago

rohan-paul commented 6 years ago

I updated package.json to latest "node": "10.1.0"

Now after running npm start I am getting the below

Failed to compile

/home/paul/PAUL/H/Web/R/R-Vid/2018/mern-stack-front-to-back-DEVELOPER-SOCIAL-NETWORK/OTHER-GIT-CLONED/react-social-network-110star/src/components/circle/CircleComponent.tsx
(24,31): Cannot find module 'layouts/IconButtonElement'.
This error occurred during the build time and cannot be dismissed.
Qolzam commented 6 years ago

Thanks for reporting. I have just updated the package 8184eb0 please update your repository and try again. Let me know if any issue.

rohan-paul commented 6 years ago

Now I am getting

Failed to compile
./src/components/comment/CommentComponent.tsx
Module not found: Can't resolve 'material-ui' in '/home/paul/PAUL/H/Web/R/R-Vid/2018/mern-stack-front-to-back-DEVELOPER-SOCIAL-NETWORK/OTHER-GIT-CLONED/react-social-network-110star-Problem/src/components/comment'
Qolzam commented 6 years ago

I guess you have not used git pull from repository to update your local repository. As I have upgrade material-ui to @material-ui/core you can't have material-ui as a reference any more. Please pull repository again and check if you can see @material-ui/core in CommentComponent.tsx. Thanks!

rohan-paul commented 6 years ago

I did a fresh git-clone of this repo and ran npm i and npm start and getting the below error again . My environment is Ubuntu 16.04

Failed to compile
/home/paul/PAUL/H/Web/R/R-Vid/2018/mern-stack-front-to-back-DEVELOPER-SOCIAL-NETWORK/OTHER-GIT-CLONED/react-social-network-110/src/components/circle/CircleComponent.tsx
(24,31): Cannot find module 'layouts/IconButtonElement'.
Qolzam commented 6 years ago

I have done 3 steps:

git clone git@github.com:Qolzam/react-social-network.git
yarn install or (npm install)
yarn start or (npm start) 

Everything seems well but I can't reproduce your issue. Please help to find if the file exist in layouts folder.

Qolzam commented 6 years ago

No reproduce. I'm going to close. Let me know if any issue.