Skip to content

Library pack workflow fails at sync:skill: the player's dist/h5p-plan.js is not built yet #120

Closed

Description

@alekswebnet

The Library pack workflow (libraries.yml) fails at pnpm --filter @missing-elements/h5p-author sync:skill. This was run 41550675774, started by hand on 2026-11-03 on 4340cdc:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '…/packages/author/node_modules/@missing-elements/h5p-offline-player/dist/h5p-plan.js' imported from …/packages/author/lib/build.mjs
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @missing-elements/h5p-author@0.2.0 sync:skill: `node scripts/sync-skill.mjs`

Cause

Since #106 (PR #110), h5p-author takes the player's library rules from @missing-elements/h5p-offline-player/plan. That is dist/h5p-plan.js, a file the player's build writes. scripts/sync-skill.mjs imports lib/author.mjs, so it needs that file too.

The workflow runs sync:skill right after sync:assets on a fresh checkout, and pnpm build comes only after it, so nothing is built yet. The last run that passed was the scheduled one of 2026-11-02, which opened #111, on 94bd746, before #110.

The package's test and test:unit scripts build the player, or its plan, before they start. sync:skill does not, so it fails on any fresh clone, not only in the workflow.

Effect

The step stops before libraries/refresh is pushed, so #111 is as it was. Until this is fixed, every run of the workflow, the weekly one included, stops here.

Activity

  1. added a commit that references this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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