Error: File is stale and needs to be rebuilt

Die Moodle Plugin-CI in den Github Actions können folgenden auf die Javascript-Dateien bezogenen Fehler melden:
"Error: File is stale and needs to be rebuilt".

Ursache

This means that version of node / dependencies you use locally are different to those used in the Moodle version you run the test on.

Lösung

Make sure your local version is matching, easiest way to do it is to run nvm install && nvm use && npm install from Moodle root, then navigate to your plugin dir and run npx grunt amd, and commit changes in minified files.

https://github.com/moodlehq/moodle-plugin-ci/issues/319

https://github.com/catalyst/catalyst-moodle-workflows/tree/bbb7b5fba5f8304b8b07ad5534b666202d1751c8?tab=readme-ov-file#amd--grunt-bundling-issues


Autorin: Melanie Treitinger, Ruhr-Universität Bochum


Version #1
Erstellt: 2026-07-21 09:45:08 UTC von Melanie Treitinger
Zuletzt aktualisiert: 2026-07-21 09:52:16 UTC von Melanie Treitinger