at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/app/server.js:9:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Fixed. Something weird on Glitch. I had to set a brand new content for the package.json so it refreshes from scratch and then paste your old code. Nothing wrong with your code but with Glitch itself.
Fixed. Something weird on Glitch. I had to set a brand new content for the package.json so it refreshes >from scratch and then paste your old code. Nothing wrong with your code but with Glitch itself.
I think I’m having the same problem but what do you mean by set a brand new content? delete the file let it update and then paste the code back in? Is it just the package.json or also the server file?
I tried adding and deleting files, I ended up just forking the project again from the FCC intro link at the beginning of the section and copy pasted my own code back in again and it worked fine… I’d really like to deploy and complete these on github as well.
It works now no change in code just made new project and copy paste my old code:
Will try to set up a server myself, or I cannot continue to learn…
Update: I cloned the repo on my server and done what was asked on an exercise (again, I passed the exercise already when glitch was working so I know it’s not the code), I am able to launch the app with node start and see the page on my-server-ip:port but fcc can’t accept it apparently as a solution, does it require a glitch project?
Same mistake on the very first node challenge, glitch giver the error cannot find module /app/server.js
I tried everything, reforking the project, recreating the files, nothing helps. Are there any other platforms to recommend instead of Glitch? Thanks!
EDIT: Apparently recreating it again on glitch from the very same link for the third time gave me different package.json file and after I completed the challenge request, it worked.
Recreating the project again and simply pasting all the code did not solve the problem for me, at least not consistently. For me, the error seems to happen any time I touched the dependencies > express key-value pair.
Solution: Recreate your project, and paste your solution around the dependencies key. Try not to modify or overwrite the “express”: “4.14.0” line of code at all. This is the finnicky part that seems to break Glitch.