Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filament v3.2.130 compatibility issue #61

Open
KamranBiglari opened this issue Dec 29, 2024 · 0 comments
Open

Filament v3.2.130 compatibility issue #61

KamranBiglari opened this issue Dec 29, 2024 · 0 comments

Comments

@KamranBiglari
Copy link

There is a compatibility issue on Filament v3.2.130 and higher and FilamentMapPicker v1.6.0

livewire.js?id=951e6947:1123 Alpine Expression Error: wt.map is not a function

Alpine Expression Error: wt.map is not a function

Expression: "async () => {
            do {
                await (new Promise(resolve => setTimeout(resolve, 100)));
            } while (!$refs.map);
            attach($refs.map);
        }"

 <div x-data=​"mapPicker($wire, {"statePath":​"mountedTableActionsData.0.origin_location","draggable":​true,"showMarker":​true,"tilesUrl":​"http:​\/​\/​tile.openstreetmap.org\/​{z}​\/​{x}​\/​{y}​.png","attribution":​null,"zoomOffset":​-1,"tileSize":​512,"detectRetina":​true,"rangeSelectField":​"mountedTableActionsData.0.distance","minZoom":​0,"maxZoom":​28,"zoom":​15,"clickable":​false,"markerColor":​"#3b82f6","liveLocation":​false,"bounds":​false,"showMyLocationButton":​true,"default":​{"lat":​0,"lng":​0}​,"geoMan":​{"show":​false,"editable":​true,"position":​"topleft","drawCircleMarker":​true,"rotateMode":​true,"drawMarker":​true,"drawPolygon":​true,"drawPolyline":​true,"drawCircle":​true,"dragMode":​true,"cutPolygon":​true,"editPolygon":​true,"deleteLayer":​true,"color":​"#3388ff","filledColor":​"#cad9ec"}​,"controls":​{"zoomControl":​true,"scrollWheelZoom":​"center","doubleClickZoom":​"center","touchZoom":​"center","minZoom":​1,"maxZoom":​28,"zoom":​15,"fullscreenControl":​true}​}​)​" x-init=​"async ()​ => {
            do {
                await (new Promise(resolve => setTimeout(resolve, 100)​)​)​;​
            }​ while (!$refs.map)​;​
            attach($refs.map)​;​
        }​" wire:ignore>​…​</div>​
handleError @ livewire.js?id=951e6947:1123
(anonymous) @ livewire.js?id=951e6947:1212
Promise.catch
runIfTypeOfFunction @ livewire.js?id=951e6947:1212
(anonymous) @ livewire.js?id=951e6947:1198
tryCatch @ livewire.js?id=951e6947:1116
evaluate @ livewire.js?id=951e6947:1140
(anonymous) @ livewire.js?id=951e6947:3489
(anonymous) @ livewire.js?id=951e6947:1909
flushHandlers @ livewire.js?id=951e6947:1281
stopDeferring @ livewire.js?id=951e6947:1286
deferHandlingDirectives @ livewire.js?id=951e6947:1289
initTree @ livewire.js?id=951e6947:1479
(anonymous) @ livewire.js?id=951e6947:1421
(anonymous) @ livewire.js?id=951e6947:970
onMutate @ livewire.js?id=951e6947:970
(anonymous) @ livewire.js?id=951e6947:873
(anonymous) @ livewire.js?id=951e6947:878
livewire.js?id=951e6947:1127 Uncaught TypeError: wt.map is not a function

Uncaught TypeError: wt.map is not a function
    at Proxy.createMap (filament-map-picker-scripts.js?v=1.6.0.0:1:438033)
    at Proxy.attach (filament-map-picker-scripts.js?v=1.6.0.0:1:442524)
    at __self.result (eval at safeAsyncFunction (livewire.js?id=951e6947:1174:21), <anonymous>:7:13)
createMap @ filament-map-picker-scripts.js?v=1.6.0.0:1
attach @ filament-map-picker-scripts.js?v=1.6.0.0:1
__self.result @ VM31075:7
await in __self.result
runIfTypeOfFunction @ livewire.js?id=951e6947:1210
(anonymous) @ livewire.js?id=951e6947:1198
tryCatch @ livewire.js?id=951e6947:1116
evaluate @ livewire.js?id=951e6947:1140
(anonymous) @ livewire.js?id=951e6947:3489
(anonymous) @ livewire.js?id=951e6947:1909
flushHandlers @ livewire.js?id=951e6947:1281
stopDeferring @ livewire.js?id=951e6947:1286
deferHandlingDirectives @ livewire.js?id=951e6947:1289
initTree @ livewire.js?id=951e6947:1479
(anonymous) @ livewire.js?id=951e6947:1421
(anonymous) @ livewire.js?id=951e6947:970
onMutate @ livewire.js?id=951e6947:970
(anonymous) @ livewire.js?id=951e6947:873
(anonymous) @ livewire.js?id=951e6947:878

I think it's related to latest version of Livewire v3.5.18 which is upgrade Alpine version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant