javascript - 从 bootstrap-vue 导入 Pagination、FormSelect 的警告
问题描述
我有这个项目,早在 2018 年就在 Darwin OS 中开发,我试图在 Windows 机器上运行这个项目,在赢得了依赖关系之后,我收到了这个警告,它不能让我的项目正常运行。
终端输出:
WARNING Compiled with 3 warnings 9:57:48 AM
warning in ./src/main.js
25:8-18 "export 'FormSelect' was not found in 'bootstrap-vue/esm/components/form-select'
warning in ./src/main.js
26:8-18 "export 'Pagination' was not found in 'bootstrap-vue/esm/components/pagination'
warning in ./src/main.js
30:25-31 "export 'default' (imported as 'bModal') was not found in 'bootstrap-vue/esm/components/modal/modal'
这就是我在 main.js 中声明导入的方式:
import {Pagination, FormSelect} from 'bootstrap-vue/esm/components'
import bModal from 'bootstrap-vue/esm/components/modal/modal'
我不确定它是否尝试导入 pagination.js,如路径“bootstrap-vue/esm/components/pagination”上的图像所示
我尝试为每个组件导入正确的路径,如下所示:
import {Pagination} from 'bootstrap-vue/esm/components/pagination'
import {FormSelect} from 'bootstrap-vue/esm/components/form-select'
但它显示了相同的警告信息。
顺便说一句,我认为很重要的一点是,开发人员操作系统是 darwing,因为我在 bootstrap-vue/esm/components 文件夹中看不到这条路径,/modal/modal
import bModal from 'bootstrap-vue/esm/components/modal/modal'
解决方案
推荐阅读
- c# - 将静态 XAML 内联样式转换为外部 CSS 样式表
- android - 如何在Android中录制remotepeer webrtc的音频
- wordpress - Wordpress 忘记密码链接不起作用
- node.js - EPERM:不允许操作,mkdir 'C:\Program Files\nodejs\node_modules
- mikro-orm - 在 Mikro-ORM 中持久化新实体时解决公式的最佳方法是什么?
- docker - 如何将文件复制到外部工作目录
- visual-studio - Visual Studio 安装程序:无法安装 Microsoft.VisualStudio.MinShell.Msi.Resources
- flutter - 如何在 Flutter 中创建五彩纸屑动画
- graphql - GraphQL:你可以使用接口来解析联合类型吗?
- kubernetes - Why iptables rule setup in initContainer `istio-init` works in application container?