Laravel-Backpack / basset

Better asset helpers for Laravel apps.
MIT License
149 stars 10 forks source link

Google Places API cache file broken? #132

Open nrodriguezm opened 1 month ago

nrodriguezm commented 1 month ago

For some reason only the following google places file appears broken and breaks 'address_google' field. Browser console shows the following message:

Uncaught SyntaxError: expected expression, got '<' image

Changing APP_ENV to "local" removes the error and 'address_google' field works again as the JS file is downloaded: image

When inspecting the cache file on Forge server:

vim storage/app/public/basset/google_places_api_script-03d2684f.js

It contains a single line:

Already tried clearing cache and config, both with composer and basset commands.

Using: backpack/basset 1.3.4 backpack/crud 6.7.15 backpack/theme-coreuiv4 1.1.1

I am at a loss here, any help is very appreciated!

pxpm commented 1 month ago

Thanks for the report @nrodriguezm

I will investigate it asap, it looks like a bug, I need to confirm if it actually is.

Would you mind posting storage/app/public/basset/google_places_api_script-03d2684f.js content, so I can compare with my own output ? (please make sure no API key is in that file before posting it here)

Cheers