无法读取未定义的 属性 'extend'。 laravel bootstrap-vue 中的安装问题

Cannot read property 'extend' of undefined. installation problem in laravel bootstrap-vue

我有一个 laravel 项目,我添加了 bootstrap-vue 包 我按照说明如何设置 https://bootstrap-vue.js.org/docs/ 然后我使用的错误是 "vue": "^2.6.10",对于 bootstrap vue 是 v2.0.0-rc.17

我的 webpack.mix.js 这是代码

const mix = require('laravel-mix');
mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css');

此错误显示在控制台中。

Uncaught TypeError: Cannot read property 'extend' of undefined at Object../node_modules/bootstrap-vue/es/components/button/button-close.js (app.js:2924) at webpack_require (app.js:20) at Object../node_modules/bootstrap-vue/es/components/alert/alert.js (app.js:2035) at webpack_require (app.js:20) at Object../node_modules/bootstrap-vue/es/components/alert/index.js (app.js:2264) at webpack_require (app.js:20) at Object../node_modules/bootstrap-vue/es/components/index.js (app.js:8771) at webpack_require (app.js:20) at Object../node_modules/bootstrap-vue/es/index.js (app.js:18932) at webpack_require (app.js:20)

似乎 this is a bug,回滚到 2.0.0-rc.16 应该可以解决这个问题。