15 lines
451 B
Bash
15 lines
451 B
Bash
#!/bin/bash
|
|
|
|
FILE="src/components/Map/MapView.jsx"
|
|
|
|
echo "🛠 Fix MapLibre CSS import in $FILE"
|
|
|
|
# Remplace l'ancien mauvais import par le bon
|
|
sed -i 's|import "maplibregl/dist/maplibre-gl.css";|import "maplibre-gl/dist/maplibre-gl.css";|g' "$FILE"
|
|
|
|
# Vérifie le résultat
|
|
echo "🔍 Vérification de l'import..."
|
|
grep 'maplibre-gl' "$FILE" || echo "⚠️ Aucun import trouvé !"
|
|
|
|
echo "✅ Correction terminée ! Maintenant lance : npm run dev"
|