# X_ACTION_PATH_DERIVED_EARLY

## Means

a path was derived before pathStyle changed

## Typical cause

a module-level derivePath(name).path ran before defineApi declared the style, so that module holds a URL no route serves

## Fix

derive the path where it is used — inside the component or function, never in a module-level const — or import the module that calls `defineApi({ http: { pathStyle } })` (`apps/web/api/index.ts`) before the one that derives it

[Actions](/error-codes#actions)
