Wappler Version : 3.4.0
Operating System : MAC
Project: NodeJS, MySql 8. Docker. AWS.
Expected behavior
What do you think should happen?
'Uncaught ReferenceError: google is not defined'
I should be able to simply choose a text input and click 'Make Google Places Autocomplete' and for this then to work as you would expect.
API Key not saving:
I should simply be able to add the API Key to the UI in Wappler and for it to save. It doesn't, so I have to manually add my private key to the header script.
Actual behavior
'Uncaught ReferenceError: google is not defined'
If I have my page on the dynamic view, the moment I convert an input to a Google Places Autocomplete - the page blanks to white and I get this error in Wappler UI:
I have the correct JS links in the Layout Header. These are working with Google Autocompletes I have working already from a previous version of Wappler.
How to reproduce
'Uncaught ReferenceError: google is not defined'
Click on a text input
Convert to Google Places Autocomplete
Ensure dynamic data view is turned on.
View Wappler warnings.
The Uncaught ReferenceError: google is not defined error appears when there is some script include missing from your page, in your case probably the Google API include
As for API key not saving, @Georgewill check this.
I can confirm this is still happening. Node.js apps are unable to use the Google Places Autocomplete or Maps.
I have tried creating a new app just to test it and get the same result.
As soon as google maps/places is added to the page the view inside Wappler goes blank. Load the page in a browser and it gives the google javascript error: NoApiKeys
I have definitely saved the API keys inside of Wappler (though they are never there when I reload the page). And can confirm the API keys are working on a non Wappler site.
You can make it work in the short term by placing your key in the includes on the page, but my screen still whites out when in Wappler if I try to use dynamic view with any page with Google AutoComplete.
Just tried it and that gets the api working but you are right, still whites out the screen making visual editing impossible on any page with google map/places on it.