Extend PMD Failed to Resolve a Definition
The error PMD error: failed to resolve 'workerCard' in presentation model definition appWorkerView
What it means
The page's presentation model (PMD) references something that doesn't exist or isn't visible at render time — a widget id, an included PMD/POD, or an endpoint name that was renamed or removed. The app deploys fine but the page fails when that definition is resolved.
Troubleshooting
- Search the app source for the unresolved name — confirm whether it was renamed, deleted, or never defined.
- If it's a POD/include, verify the include path and that the included file is part of the deployed build.
- If it's an endpoint, check the AMD (app model definition) for the endpoint's exact name — PMD references are case-sensitive.
- Re-deploy after fixing and hard-refresh; stale cached pages can keep showing the old failure.
⚡ Quick fix
Fix the reference (or restore the renamed definition), redeploy the app, and reload the page.
✓ Permanent fix
Adopt a naming convention for widgets/endpoints, do rename refactors with a project-wide search, and add a pre-deploy checklist step that loads every page in the app once in a non-production environment.