I have tried to find the answer before arriving here, however I have not finished finding the solution to my problem.
I am using google maps API and require.js in my application with Laravel. I am familiar with the problems of asynchrony and how it is solved by declaring the path of google maps from the definition of require.
My problem is that when trying to load the map, the console shows the following error:
In the config of the require I have not defined anything other than the path of Async, jquery and other necessary tools. The definition of js where I try to call google maps is the following:
define(['jquery', 'plugins', 'async!https://maps.googleapis.com/maps/api/js?&libraries=visualization&key=A7b8sA9dsGDsA09dD3I2TR6S7aSD!callback'], function ($, plugins, async) {
I have tried removing the callback from the end but it is not a solution. Any idea how to solve it?
I show the exact line where the require fails according to the console.