Skip to content

Build instructions don't work #243

New issue

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

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

Already on GitHub? # to your account

Open
AntonOfTheWoods opened this issue Aug 5, 2022 · 4 comments · May be fixed by #244
Open

Build instructions don't work #243

AntonOfTheWoods opened this issue Aug 5, 2022 · 4 comments · May be fixed by #244

Comments

@AntonOfTheWoods
Copy link

In order to attempt to consult the documentation due to #242, I attempted to build and run the site locally. I get the following error under the menu bar on the local site after building:

500
invalid json response body at http://127.0.0.1:3000/guide/en.json reason: Unexpected token E in JSON at position 0

FetchError: invalid json response body at http://127.0.0.1:3000/guide/en.json reason: Unexpected token E in JSON at position 0
    at /home/anton/dev/tmp/rollupjs.org/src/node_modules/@sapper/server.mjs:777:35
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 2)
@ItsKDaniel
Copy link

If docs are what you are after, instead of npm run dev try building the app using npm run build and then run npx serve __sapper__/export or npm run dev

Once the app is built, the missing files are generated.
image

@AntonOfTheWoods AntonOfTheWoods linked a pull request Aug 5, 2022 that will close this issue
@AntonOfTheWoods
Copy link
Author

Thanks, that was not at all clear from the README. I added that to the instructions in the mentioned PR.

@ItsKDaniel
Copy link

Instead of building the whole application, executing the below npm commands work, for starting the site in local

npm install
npm run update-guide
npm run generate-graphs
npm run dev

@AntonOfTheWoods
Copy link
Author

@ItsKDaniel , so that would also mean changing the text from "Steps to build the website locally" to "Steps to run the website locally"?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants