Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChristianB2113 opened this issue Sep 12, 2021 · 4 comments

Comments

@ChristianB2113
Copy link

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

@Cirych
Copy link

Cirych commented Sep 28, 2021

Hi Christian!

Please check:

  • This repo is cloned with success and you're inside mern-skeleton folder
  • MongoDB is running on your system
  • npm install completed with success
  • npm run development executed and shows no errors
  • localhost:3000 is the URL in your browser

@ProgrammerE
Copy link

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
Copy link

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
Copy link

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

  • did you install mongodb?
  • did you install mongoshell?
  • you have to create a database named "mernproject" by using the command "use mernproject" in mongoshell
  • by using the commands "node -v" and "npm -v" check your versions of node and npm and update the entries in package.json
  • say a prayer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants