Skip to content

Examples are not being generated with 'watch' script #1234

Closed
@aceslowman

Description

@aceslowman

Most appropriate sections of the p5.js website?

Examples

What is your operating system?

Windows

Web browser and version

103.0.5060.114 (Official Build) (64-bit) (cohort: Stable)

Actual Behavior

When following the 'setup' and 'running' instructions in the readme, the npm run watch script generates examples/index.html, but none of the individual examples. All example pages, such as http://localhost:9000/examples/3d-basic-shader.html, return Cannot GET /examples/3d-basic-shader.html. All other pages, including reference pages, appear to be generated properly.

This might be some confusion or misconfiguration on my end, and if appropriate I'd like to update the readme to help others who run into the same issue.

Expected Behavior

I expect the individual example pages to be generated when either the npm run watch or npm run assemble commands are run.

Steps to reproduce

I forked p5.js-website, confirmed that Java is installed, ran npm install then npm run watch. Then, I navigated to http://localhost:9000/examples/, which displays properly, after which all individual examples return the same error.

Would you like to work on the issue?

If appropriate I'd be happy to update the readme with more info

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions