If Xaero's Minimap isn't working or the game crashes, try these fixes in order.
Fixes
Minimap not showing: press the default key (Y) or check keybinds
No waypoints: press B to create a waypoint
Radar not showing players: disabled on some servers - check settings
Crash with other minimaps: uninstall other minimap mods first
Still broken?
Make sure you downloaded the correct version for your Minecraft version and mod loader, and that Java is up to date. A common cause is mixing Fabric and Forge builds - use the right one for your setup.