【发布时间】:2022-01-25 10:21:39
【问题描述】:
Ruby 2.7.1、纱线 1.22.5、Rails 6.0.4.4、节点 v16.13.1
我在 https://stevepolito.design/blog/rails-react-tutorial/
它会自动在我的 Gemfile.lock 中安装 webpacker 4.3.0
但是,在教程的“加载引导”部分之前,我得到了一个“Webpacker::Manifest::MissingEntryError”。
感谢https://github.com/rails/webpacker/issues/1730 的 mehmoodak,我已通过“yarn add @rails/webpacker”修复了错误
最后,我正在检查 webpack.js 的版本是什么
yarn list webpack,显示 webpack@4.46.0
Gemfile.lock,显示 webpacker (4.3.0)
package.json,显示“@rails/webpacker”:“^5.4.3”
我很困惑我的 webpack.js 在 Rails 应用程序中的哪个版本?
“webpack”、“webpacker”或“@rails/webpacker”在某些方面是否不同?
谢谢!
【问题讨论】:
标签: reactjs ruby-on-rails ruby webpack