Skip to content

Website won't run locally after build:reference #759

Closed
@webermayank

Description

@webermayank

Most appropriate sections of the p5.js website?

Home

What is your operating system?

Windows

Web browser and version

Chrome://latest

Actual Behavior

When we try to start website locally using npm run dev after building reference using npm run build:reference we got an error on browser

Image

the error on editor terminal is as follows:

(node:17964) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
17:20:44 [ERROR] [InvalidContentEntryFrontmatterError] reference → en/p5/arrayCopy.mdx frontmatter does not match collection schema.
deprecated: Expected type `"string"`, received "boolean"
  Hint:
    See https://docs.astro.build/en/guides/content-collections/ for more information on content schemas.
  Error reference:
    https://docs.astro.build/en/reference/errors/invalid-content-entry-frontmatter-error/
  Stack trace:
    at C:/Users/path/to/p5.js-website/src/content/reference/en/p5/arrayCopy.mdx
    [...] See full stack trace in the browser, or rerun with --verbose.
17:20:44 [ERROR] [InvalidContentEntryFrontmatterError] reference → en/p5/arrayCopy.mdx frontmatter does not match collection schema.
deprecated: Expected type `"string"`, received "boolean"
  Hint:
    See https://docs.astro.build/en/guides/content-collections/ for more information on content schemas.
  Error reference:
    https://docs.astro.build/en/reference/errors/invalid-content-entry-frontmatter-error/
  Stack trace:
    at C:/Users/path/to/p5.js-website/src/content/reference/en/p5/arrayCopy.mdx
    [...] See full stack trace in the browser, or rerun with --verbose.

and this is only happening after building reference.

  • after npm run custom:cleanup which deletes the reference files modification, this error won't come,

Expected Behavior

Website server would run as usual even after building reference

Steps to reproduce

Open p5.js-website in editor
run npm run build:reference and then npm run dev
go to the provided localhost link
wait for few minutes to load the wesbite

Would you like to work on the issue?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions