Custom Pub Dependency (maplibre_gl) added but "Target of URI doesn't exist" persists

Troubleshooting

I added maplibre_gl as a Custom Pub Dependency in Project Dependencies (tested versions ^0.20.0 and ^0.27.0). It appears correctly listed with the version set. However, my Custom Widget (EnziMap) still shows the compile error "Target of URI doesn't exist: 'package:maplibre_gl/maplibre_gl.dart'" and all subsequent errors depending on it (undefined classes MaplibreMapController, CameraPosition, MaplibreMap, etc).

Project: ENZI COURSIER (enzicoursier-oc1v22)

What have you tried so far?

- Refreshed the browser (F5) completely

- Switched tabs between Custom Pub Dependencies and FlutterFlow Pub Dependencies to force a refresh

- Changed the dependency version twice

- Removed and re-added the dependency

- Waited over 15 minutes between attempts

Did you check FlutterFlow's Documentation for this topic?
No
2
3 replies