小编par*_*dev的帖子

Rails 6 无法部署到 Heroku:ModuleNotFoundError:找不到模块:错误:无法解析“/tmp”中的“@popperjs/core”

我正在尝试将我的 Rails 6 类博客应用程序部署到 Heroku,自从我添加了 Bootstrap 来做一些样式后,我再也无法编译和推送了。这是我收到的消息:

ModuleNotFoundError:找不到模块:错误:无法解析“@popperjs/core”....

如果有人知道如何解决此错误,请告诉我。

代码可以在这里找到:https : //github.com/parK-dev/Alpha-Blog

请注意,这是我第一次尝试 Rails,我是开发新手,希望得到明确的指示,谢谢。

-----> Building on the Heroku-20 stack
-----> Ruby app detected
-----> Installing bundler 2.1.4
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-3.0.0
-----> Installing dependencies using bundler 2.1.4
       Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
       Using rake 13.0.3
       Using concurrent-ruby 1.1.8
       Using i18n 1.8.8
       Using minitest 5.14.3
       Using tzinfo 2.0.4
       Using zeitwerk 2.4.2
       Using activesupport 6.1.1 …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails popper.js bootstrap-5

3
推荐指数
3
解决办法
1651
查看次数

标签 统计

bootstrap-5 ×1

popper.js ×1

ruby-on-rails ×1