reactjs - React Boostrap - TypeError:无法读取未定义的属性“bool”
问题描述
我创建了一个新的反应应用程序,反应版本为 16.6.3。我添加了 react-bootstrap 版本 0.28.5。但是,当我运行我的应用程序时,我收到“React Boostrap - TypeError: Cannot read property 'bool' of undefined”错误。
这是 package.json:
"dependencies": {
"@types/react-router-dom": "^4.3.1",
"axios": "^0.18.0",
"babel": "^6.5.2",
"bootstrap": "^3.3.7",
"file-saver": "^2.0.0",
"react": "^16.6.3",
"react-bootstrap": "^0.28.5",
"react-dom": "^16.6.3",
"react-overlays": "^0.7.0",
"react-router": "^3.2.0",
"react-router-dom": "^4.2.2",
"react-scripts-scss-ts": "2.17.1",
"react-search-input": "^0.11.3"
}
我还运行“npm dedupe”来查找任何重复的问题,但没有运气。有什么办法可以解决这个问题吗?
解决方案
推荐阅读
- javascript - Unit test Material UI styles
- javascript - 无法从类的方法调用构造函数中声明的属性
- javascript - 如何在某些范围内映射数字
- c# - SQL 查询必须声明标量变量
- ruby-on-rails - Rails + Amoeba 错误:未初始化的常量
- java - 获取值并在我输入时更新它
- ios - Scenekit - 将子节点(平面节点)添加到相机前面的父节点(球体节点)
- python - 为什么焦点事件后插入符号会从 TextCtrl 小部件中消失?
- reactjs - 如何在 JSX 中捕获异常
- smartcard - 智能卡 Mifare 1k 钥匙