For future reference:
This also happens when using PHP’s built-in server without pointing to router. It will trigger: Field type “xxx” does not exist. on all custom fields.
# triggers error
php -S localhost:8000
# works normally
php -S localhost:8000 kirby/router.php
Kirby docs specifically recommends avoiding PHP’s built-in server. Try listed alternatives.