如何解决警告“> bootstrap@4.5.2”具有未满足的对等依赖项“ popper.js@^1.16.1”
我通过执行以下操作在Rails 6应用程序中使用boostrap
bin/yarn add bootstrap jquery
然后将其添加到app/javascript/packs/application.js
:
window.$ = window.jQuery = require("jquery");
import "bootstrap/dist/js/bootstrap.bundle.js"
并将其添加到app/assets/stylesheets/application.scss
:
// =需要bootstrap / dist / css / bootstrap
现在,当我将其推送到heroku时,应用程序将按预期构建,但我看到以下6条警告
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info fsevents@2.1.3: The platform "linux" is incompatible with this module.
remote: info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: warning " > bootstrap@4.5.2" has unmet peer dependency "popper.js@^1.16.1".
remote: warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
remote: warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
remote: [4/4] Building fresh packages...
remote: Done in 26.61s.
remote: yarn install v1.22.4
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info fsevents@2.1.3: The platform "linux" is incompatible with this module.
remote: info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: warning " > bootstrap@4.5.2" has unmet peer dependency "popper.js@^1.16.1".
remote: warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
remote: warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
remote: [4/4] Building fresh packages...
我可以在应用程序的引导程序中编写一些代码,但是我对设置正确性并不熟练。我怀疑我忘记做某事或正确配置了某事?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。