学习Bootstrap-Vue遇到的第一个问题

下边是错误代码:

* @babel/runtime/helpers/classCallCheck in ./node_modules/bootstrap-vue/es/directives/scrollspy/scrollspy.class.js, ./node_modules/bootstrap-vue/es/utils/bv-event.class.js and 2 others
 * @babel/runtime/helpers/createClass in ./node_modules/bootstrap-vue/es/directives/scrollspy/scrollspy.class.js, ./node_modules/bootstrap-vue/es/utils/tooltip.class.js and 2 others
* @babel/runtime/helpers/defineProperty in ./node_modules/bootstrap-vue/es/components/button/button.js, ./node_modules/bootstrap-vue/es/components/button/button-close.js and 22 others
* @babel/runtime/helpers/getPrototypeOf in ./node_modules/bootstrap-vue/es/utils/popover.class.js
* @babel/runtime/helpers/inherits in ./node_modules/bootstrap-vue/es/utils/popover.class.js
* @babel/runtime/helpers/interopRequireDefault in ./node_modules/bootstrap-vue/es/components/index.js, ./node_modules/bootstrap-vue/es/components/alert/alert.js and 122 others
* @babel/runtime/helpers/interopRequireWildcard in ./node_modules/bootstrap-vue/es/index.js, ./node_modules/bootstrap-vue/es/components/badge/badge.js and 12 others
* @babel/runtime/helpers/objectSpread in ./node_modules/bootstrap-vue/es/components/dropdown/dropdown-form.js, ./node_modules/bootstrap-vue/es/components/form-group/form-group.js and 8 others
* @babel/runtime/helpers/possibleConstructorReturn in ./node_modules/bootstrap-vue/es/utils/popover.class.js
* @babel/runtime/helpers/toConsumableArray in ./node_modules/bootstrap-vue/es/components/card/card-body.js, ./node_modules/bootstrap-vue/es/components/card/card.js and 1 other
* @babel/runtime/helpers/typeof in ./node_modules/bootstrap-vue/es/components/breadcrumb/breadcrumb.js, ./node_modules/bootstrap-vue/es/components/link/link.js and 11 others

To install them, you can run: npm install --save @babel/runtime/helpers/classCallCheck @babel/runtime/helpers/createClass @babel/runtime/helpers/defineProperty @babel/runtime/helpers/getPrototypeOf @babel/runtime/helpers/inherits @babel/runtime/helpers/interopRequireDefault @babel/runtime/helpers/interopRequireWildcard @babel/runtime/helpers/objectSpread @babel/runtime/helpers/possibleConstructorReturn @babel/runtime/helpers/toConsumableArray @babel/runtime/helpers/typeof ``

解决方案:

1.运行npm install @babel/runtime

2.如果有yarn的话,运行yarn add @babel/runtime

发布了12 篇原创文章 · 获赞 6 · 访问量 4516

猜你喜欢

转载自blog.csdn.net/weixin_43329956/article/details/87434127