For AI agents: the complete documentation index is available at https://mfeflow.github.io/mfeflow/llms.txt, the full documentation bundle is available at https://mfeflow.github.io/mfeflow/llms-full.txt, and this page is available as Markdown at https://mfeflow.github.io/mfeflow/reference/errors.md.

Error codes

Every error the CLI prints has a code like MFEFLOW_E102, a cause, a fix and a link to a page. This page lists them all. The first digit is the area, and it sets the exit code. Messages that start with MFE_ come from the browser runtime. Those are covered in Troubleshooting.

Project and config (E1xx, exit code 3)

CodeMeaning
E101A shared singleton is missing from the shared list
E102No mfeflow.json found
E103mfeflow.json is not valid JSON
E104mfeflow.json does not match its schema
E105A path points outside the project
E106A file could not be read or written
E107A command-line option is missing or not valid
E108The target folder is not empty
E109The preset could not be used
E110--local does not point at a built mfeflow checkout
E111A workspace package has no version
E112An app in mfeflow.json is not on disk
E113mfeflow.app.json is missing or invalid
E114A registry entry is missing or invalid
E115Two apps use the same port
E116Two remotes claim routes that overlap, or an app file disagrees with mfeflow.json
E117A copied file changed since mfeflow wrote it
E118.env.example does not match the keys in env.ts
E119A runtime-config file does not match the runtime-config schema
E120A PUBLIC_ variable would be baked into the bundle
E121A server env key is not listed in turbo.json
E122An app has both mfeflow.app.json and the old mfe.json
E123This folder already has an mfeflow.json
E124adopt found nothing it can set up

Features (E2xx, exit code 4)

CodeMeaning
E201Feature not found
E202feature.json is invalid
E203A third-party feature uses something third-party features may not
E204Unknown transform op
E205Feature conflicts with an installed feature
E206Feature needs another feature first
E207The feature wants to create or change something that already exists
E208A file the feature edits is missing or not shaped as expected
E209A template could not be rendered
E210Registry namespace is not configured
E211Files changed since the plan was made
E212Applying the plan failed
E213Installing dependencies failed
E214A feature option is invalid
E215The app name cannot be used

Build and runtime (E3xx, exit code 5)

CodeMeaning
E301A singleton resolves to more than one version
E302A remote is not compatible with its shell
E303A runtime plugin imports a shared module
E304A bundle is over its budget
E305There is no build output to measure
E306A dev server could not start
E307The shell to check against could not be read

Registry (E4xx, exit code 6)

CodeMeaning
E401Could not fetch from the registry
E402The registry returned something that is not a feature
E403The registry's index.json is not valid
E404A feature in the registry folder cannot be published

E107 and E215 are command-line mistakes and exit with code 2. The E5xx range belongs to deploy, promote, rollback and status and exits with code 7:

CodeMeaning
E501A deploy failed the schema gate
E502A route of this remote overlaps a route of another remote
E503The remote's shared ranges do not fit the shell that is deployed
E504The remote is over its first-load JS budget
E505A rollout was asked for, and a static host cannot split traffic
E506The registry host is not set up or cannot be used
E507There is no build output to deploy
E508There is no such version to move to
E509Files of the target version are missing on the host
E510Another deploy changed the index at the same time
E511This version is already published with different content
E512Local registry files and the host disagree

Upgrade (E6xx, exit code 8)

CodeMeaning
E601Cannot tell which version of mfeflow made the project
E602The project is newer than the version you upgrade to
E603A feature migration could not be loaded or failed
E604Files you changed need a decision