react-bootstrap - 安装 React Bootstrap - 无法解决
问题描述
我正在使用 npm install --save react-bootstrap 来安装引导程序。
该文档还说将 import 'bootstrap/dist/css/bootstrap.min.css' 放在我已经完成的 index.js 文件中。
我得到一个错误。无法解析“bootstrap/dist/css/bootstrap.min.css”
当我查看 node_modules 时,我没有在任何地方看到引导程序。
谁能告诉我这里发生了什么?
解决方案
你需要同时安装 react-bootrap 和 bootstrap@4.6.0
> npm install react-bootstrap bootstrap@4.6.0
https://react-bootstrap.github.io/getting-started/introduction#installation
推荐阅读
- php - 数组中的 Symfony 下拉列表
- laravel - Laravel 从 URL 添加图片作为附件
- vue.js - Vue 笑话:创建的钩子出错:“TypeError:无法读取未定义的属性‘getters’”
- r - R中多边形的长度
- javascript - Photoshop Scripting JavaScript 循环层问题
- android - InverseBindingAdapter - 获取原始值
- html - 自动隐藏
- 使用 jQuery 在加载时列出
- flutter - 如果我在我的 Flutter 应用中包含来自我 PC 的资产图像并将其发布到 Play 商店,这些图像会出现在应用中吗?
- python - 在 Python 中解析从 AWS API Gateway HTTP API Authorizer 返回的 Firebase JWT 声明
- r - 不使用 Spark 处理来自 R 的 Avro 文件