Skip to content

Astro error on first time running npm run dev #116

@axelgar

Description

@axelgar

How to reproduce

  • Clone clean repo
  • Run tasks from Readme.md
  • Run npm run dev
    (after first run it works)

What happens

16:32:22 [ERROR] [UnhandledRejection] Astro detected an unhandled rejection. Here's the stack trace:
InvalidContentEntryDataError: decisions → Oklab Chroma Scale Anchored Sample data does not match collection schema.
type: Required
    at getEntryDataAndImages (file:///Users/axel/Documents/repositories/designer/node_modules/astro/dist/content/utils.js:163:26)
    at async Object.parseData (file:///Users/axel/Documents/repositories/designer/node_modules/astro/dist/content/content-layer.js:164:40)
    at async simpleLoader (file:///Users/axel/Documents/repositories/designer/node_modules/astro/dist/content/content-layer.js:255:20)
    at async Promise.all (index 3)
    at async #doSync (file:///Users/axel/Documents/repositories/designer/node_modules/astro/dist/content/content-layer.js:147:5)
    at async file:///Users/axel/Documents/repositories/designer/node_modules/p-queue/dist/index.js:187:36
  Hint:
    Make sure your promises all have an `await` or a `.catch()` handler.
  Error reference:
    https://docs.astro.build/en/reference/errors/unhandled-rejection/
  Stack trace:
    at /Users/axel/Documents/repositories/designer/docs/designer-decisions/Users/axel/Documents/repositories/designer/node_modules/astro/dist/content/utils.js:163:26
    [...] See full stack trace in the browser, or rerun with --verbose.

What should happen

No errors on first run neither

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions