Build and runtime problems
Troubleshoot Web Viewer applications across three distinct stages: project verification checks, production compilation, and in-application runtime execution.
Project checks fail
Prompt your coding agent to run project lint and type checks (pnpm check). Common causes include stale generated types, API updates in @adk/fmdapi, or development-only imports. Do not edit generated or vendored files to suppress application errors.
Production build fails
The production build (pnpm build) must complete before ADK can deploy an application bundle. Review the initial build error reported by Vite, resolve the underlying syntax or configuration issue, and re-run checks.
Deployment failures
Verify that the application is registered in adk.json, bound to the intended database file, and that production build assets exist in dist/index.html. Then prompt your agent to diagnose the connection and execute adk deploy.
Deploying writes compiled bundles into FileMaker persistent data; a successful build on disk does not update the FileMaker file until deployed.
Behavioral discrepancies in Web Viewer
If an application functions in browser preview but fails inside FileMaker Pro, test the workflow within FileMaker Pro directly. Inspect script calls, record access rules, navigation, and account privilege sets.
If the Web Viewer renders blank, inspect console logs through the coding agent and verify that deployed bundles are current. If script calls hang, see Components and Web Viewer connection problems.
Related topics
-
Test an app in FileMaker—Review testing procedures.
-
Runtime platforms and limitations—Review cross-platform runtime considerations.