Bootstrap 4 имеет две зависимости
warning " > bootstrap4.4.1@4.4.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap4.4.1@4.4.1" has unmet peer dependency "popper.js@^1.16.0".
node_modules / bootstrap4.4.1 / package. json
"peerDependencies": {
"jquery": "1.9.1 - 3",
"popper.js": "^1.16.0"
},
Я хочу переопределить эти зависимости в моем пакете. json
yarn add jquery3.4.1@npm:jquery@3.4.1
yarn add popper.js1.16.1@npm:popper.js@1.16.1
упаковка. json
{
"name": "app",
"private": true,
"dependencies": {
"@babel/preset-react": "^7.9.4",
"@rails/webpacker": "4.2.2",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"bootstrap4.4.1": "npm:bootstrap@4.4.1",
"jquery3.4.1": "npm:jquery@3.4.1",
"popper.js1.16.1": "npm:popper.js@1.16.1",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"devDependencies": {
"webpack-dev-server": "^3.10.3"
},
"overrides": {
"bootstrap4.4.1": {
"peerDependencies": {
"jquery": "-",
"jquery3.4.1": "+",
"popper.js": "-",
"popper.js1.16.1": "+"
}
}
}
}