I’m following the guide for setting up FCC locally. However, when I visit localhost:8000 I get a blank page and see errors like this in the terminal:
Error loading a result for the page query in "index" / "/". Query was not run and no cached result was found. ENOENT: no such file or directory, open 'C:\Users\me\Documents\webdev\freeCodeCamp\client\public\page-data\index\page-data.json'
Error loading a result for the page query in "404.html" / "404.html". Query was not run and no cached result was found. ENOENT: no such file or directory, open 'C:\Users\me\Documents\webdev\freeCodeCamp\client\public\page-data\404.html\page-data.json'
Am I missing files? I think my MongoDB setup is OK, because the build prints this:
fcc:server freeCodeCamp server listening on port 3000 in development +2s
fcc:server connecting to db at mongodb://localhost:27017/freecodecamp +1ms
fcc:server db connected +31ms
And here’s what I got when running npm run seed:
fcc:tools:seedLocalAuthUser Connected successfully to mongo +0ms
fcc:tools:seedLocalAuthUser local auth user seed complete