Error #1: Route path compilation failed
createUrl() or open() tried to build a URL, but the given params did not satisfy the path pattern.
How to reproduce
ts
import { createRoute } from 'mobx-route';
const userRoute = createRoute('/users/:id');
// `id` is required by the pattern but not provided:
userRoute.createUrl({} as any);
// → console.error: "Error #1: Route path compilation failed"
// → returned URL falls back to `fallbackPath` (or '/')What the library does
Logs the error (minified in production), then navigates to fallbackPath from the route or routeConfig, or '/'.
Fix
Pass complete params when opening or building links. If params can be missing at runtime, set a safe fallbackPath so users land somewhere sensible instead of a broken URL.
In development, check the logged exception for the exact segment that failed.
