Basic Node and Express - Meet the Node console

Tell us what’s happening:

I really need some help with this, I’ve tried using gitpod and Glitch, neither provide links able to pass the test. I’m aware I just need to put console.log(“Hello World”) into the myApp.js, so I’m thinking there must be an issue with the platform? I’ve tried different browsers as well, nothing. Am I missing something obvious with this?

###Your project link(s)

solution: Glitch :・゚✧

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0

Challenge Information:

Basic Node and Express - Meet the Node console

you need to provide the url of the preview

I don’t know about glitch but also there you should have a link to the live app

the link you submitted is an edit link

My bad, couldn’t post multiple links. Here is the live app: https://fluff-marmalade-wealth.glitch.me
Sharing this because I couldn’t get anything to work in the gitpod.

it doesn’t load anything for me

I would suggest GitPod, as that is what I am more used to, but you do you

have you considered developing locally?

Right, the whole problem I’ve been having and why I’m using glitch is because gitpod keeps failing. This is from the gitpod “sample browser”: https://3000-freecodecam-boilerplate-8suexjqjcon.ws-us117.gitpod.io.
May have to swap to developing locally, would I download these files, edit them on vscode, ten make a github repo with a link to paste into the challenges?

share your code please, it’s the thing you did not do

let express = require(‘express’);
let app = express();

console.log(‘Hello World’);

module.exports = app;

did you restart the server after making these changes?

Yes, I’ve wondered if this could be a browser error, but that hasn’t seemed to solve anything either.

can you share a snapshot?

see here: Collaboration & Sharing of Gitpod workspaces - Docs

Sure: Dashboard

this line is missing in the myApp.js in the snapshot you shared

Sorry about that, it gets thrown way down to the bottom.
https://gitpod.io#snapshot/b5ad9e8d-d5b3-43ec-85a2-c9c3c1ef726c

have you tested that? with the export not deleted?

I have, included and not. Is there an obvious step I’m missing in a separate file? I tried adding the watch flag here as well, tested both with and without.
https://gitpod.io#snapshot/7ead9c26-14f5-448d-9231-43e1485a78b5

I can pass with this one

I can also pass with this one

after that change you need to stop the server and restart the server with npm run start, did you do that?

I have, which is why I’m wondering if it’s a browser issue, so I tried in Chrome as well, but got the same error. Is there some troubleshooting I can do for that? I haven’t been able to find my console-log when I inspect, or in the app’s console. I have noticed that the the terminal says failed loading server.js on some reloads. Tests just won’t pass for me for some reason despite the message appearing now. Dashboard

this is the terminal when starting the workspace from your snapshot:

So please stop the terminal with Ctrl + C then run npm run start again

1 Like

Embarrassing moment, sorry about that, that seems to have gotten it straightened out. Many many thanks.

1 Like