Solution in Replit not working

Tell us what’s happening:
I’ve created the project in Github repository. I submitted the link, but it’s not recognizing the package.json.

I’m also having problem with using replit. I have the url running, and it works within replit, but when I try to access from a separate browser (tab) it doesn’t work.

Your project link(s)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36 Edg/93.0.961.47

Challenge: How to Use package.json, the Core of Any Node.js Project or npm Package

Link to the challenge:

Hi @rjespera !

Replit is having some issues with the live link.
If you are going to use replit follow this quick fix.

Did you submit the live link?

If you are running this locally, make sure to submit the local host link while the server is running.
http://localhost:3000/

3 Likes

I found out what the problem was. Apparently the url in Replit editor environment is not the same url as the live preview.

In my case the url in editor is: https://boilerplate-npm.myusername.repl.co, but the live url is https://boilerplate-npm--myusername.repl.co.

Just run the site in Replit and when you click the ‘Open in new tab’ button. If it timesout most likely you need to change the ‘.’ to ‘–’.

Yeah that is a common mistake from people who are new to replit.

Glad you were able to figure it out :grinning:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.