DF0058: Dev Server Disabled By The Definition
"{id}" declares capabilities.dev: false; it does not support a live dev server (its value is a static export only).
Message
"{id}" declarescapabilities.dev: false; it does not support a live dev server (its value is a static export only).
Cause
A definition opts out of the live dev server via capabilities.dev: false when its value is inherently static (e.g. a report generator with nothing to serve live). Calling createDevServer() on such a definition throws.
Example
await createDevServer(reportDevframe) // ✗ throws DF0058
// Run it anyway:
await createDevServer(reportDevframe, { force: true })Fix
- Pass
{ force: true }tocreateDevServer()to run it anyway. - Otherwise, drop
capabilities.dev: falseon the definition if a live dev server should be supported after all.
Source
packages/devframe/src/adapters/dev.ts:createDevServer()throws this whencapabilities.devisfalseandforceisn't set.