PacktPublishing / Full-Stack-React-Projects-Second-Edition

Full-Stack React Projects - Second Edition, published by Packt
MIT License
452 stars 541 forks source link

Build Successful no errors but no output Chapter 3 and 4 mern-skeleton #116

Open ChristianB2113 opened 2 years ago

ChristianB2113 commented 2 years ago

I believe I followed everything in the code examples to a T, but unfortunately I cannot get the browser to display anything

Cirych commented 2 years ago

Hi Christian!

Please check:

ProgrammerE commented 2 years ago

I'm glad I found this. Thanks for the list @Cirych. If anybody cares: the book just brushes past deploying the app with "first, have the server running." For a beginner, that's a huge step. It sent me on a googling spree. The book uses yarn and the commands at the beginning of the chapter to install babel and webpack didn't work for me... so I had to understand that npm exists and comes with Node.js, had to install webpack (npm install --save-dev webpack) and webpack-cli (npm install --save-dev webpack-cli). Then, I was able to follow the steps above and it worked. (not sure comments like this fit here, wanted to put my experience on record)

IslamYusuf commented 2 years ago

I believe I followed everything in the code examples to a T, but unfortunately I cannot get the browser to display anything

I also have the same problem. Webpack bundles everything with no errors but nothing is showing on the browser

ProgrammerE commented 2 years ago

I feel you, man. It's hard do diagnose because there are so many moving parts: