# X_SW_SCOPE_INVALID

## Means

the service-worker scope cannot serve the routes it precaches

## Typical cause

a scope narrower than the app

## Fix

serve `sw.js` from the app root

[PWA and build skew](/error-codes#pwa-and-build-skew)
