Problem Jquery and boostrap

0

I try to install boostrap and jquery in my project but I get this error.

Uncaught Error: Bootstrap's JavaScript requires jQuery     at Object. (app.js: sourcemap: 10906)     at webpack_require (app.js: sourcemap: 20)     at Object._typeof (app.js: sourcemap: 1053)     at webpack_require (app.js: sourcemap: 20)     at app.js: sourcemap: 63     at app.js: sourcemap: 66 (anonymous) @ app.js: sourcemap: 10906 webpack_require @ app.js: sourcemap: 20 _typeof @ app.js: sourcemap: 1053 webpack_require @ app.js: sourcemap: 20 (anonymous) @ app.js: sourcemap: 63 (anonymous) @ app.js: sourcemap: 66

<!doctype html>
<html lang="{{ app()->getLocale() }}">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Laravel</title>

  
        <link rel="stylesheet" type="text/css" href="{{asset ('css/app.css') }}">


    </head>
    <body>

    <div id="main" class="container">
        
        @yield('content')
    </div>
        

        <script src="{{ asset('js/app.js') }}"></script>
    </body>
</html>

    
asked by DANIEL FELIPE LOPEZ VARGAS 05.01.2018 в 22:52
source

1 answer

0

In the documentation says you should occupy scripts instead of js

mix.scripts([
    'resources/assets/js/jquery.js',
    'resources/assets/js/bootstrap.js'
], 'public/js/app.js');
    
answered by 05.01.2018 в 23:37