duanpo2037 2019-03-07 08:33
浏览 71

plugin.load不是Laravel中的函数 - require.js.

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:

Error log image

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.

Require.js error

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 ogg dd trandata 报错
    • ¥15 高缺失率数据如何选择填充方式
    • ¥50 potsgresql15备份问题
    • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
    • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
    • ¥60 pb数据库修改与连接
    • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
    • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
    • ¥20 神经网络Sequential name=sequential, built=False
    • ¥16 Qphython 用xlrd读取excel报错