简体   繁体   English

laravel 6 背包找不到 JQuery

[英]laravel 6 backpack is not finding JQuery

in my在我的

config/backpack/base.php配置/背包/base.php

I have this mentionned:我提到了这个:

// -------
// SCRIPTS
// -------

// JS files that are loaded in all pages, using Laravel's asset() helper
'scripts' => [
    // Backstrap includes jQuery, Bootstrap, CoreUI, PNotify, Popper
    'packages/backpack/base/js/bundle.js',

    // examples (everything inside the bundle, loaded from CDN)
     'https://code.jquery.com/jquery-3.4.1.min.js',
    // 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js',
     'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js',
    // 'https://unpkg.com/@coreui/coreui/dist/js/coreui.min.js',
    // 'https://cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/pace.min.js',
    // 'https://unpkg.com/sweetalert/dist/sweetalert.min.js',
    // 'https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.js'

    // examples (VueJS or React)
    // 'https://unpkg.com/vue@2.4.4/dist/vue.min.js',
    // 'https://unpkg.com/react@16/umd/react.production.min.js',
    // 'https://unpkg.com/react-dom@16/umd/react-dom.production.min.js',
],

But in fact when I open my login page and log to my server, I have this error但实际上当我打开我的登录页面并登录到我的服务器时,我有这个错误

Uncaught ReferenceError: jQuery is not defined未捕获的引用错误:未定义 jQuery

i did refresh with those commands just in case:为了以防万一,我确实使用这些命令进行了刷新:

php artisan cache:clear php 工匠缓存:清除

php artisan config:cache php 工匠配置:缓存

php artisan view:clear php 工匠观点:明确

But nothing changes.但没有任何改变。

For those who might have this issue, you have to do a对于那些可能有这个问题的人,你必须做一个

composer remove backpack/base作曲家移除背包/底座

and also check if you have backpack/generators at a version above ^2.0 , which wasnt my case and was requiring backpack/base too并检查您是否有^2.0以上版本的背包/发电机,这不是我的情况,也需要背包/底座

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM