Webpacker :: Manifest :: Hello #index中的MissingEntryError(ruby on rails)

问题描述 投票:4回答:1

我已经下载了Honeybadger webpack example并运行bundle install

我在终端中没有任何错误,但在启动服务器时得到以下内容:

Webpacker can't find application.js in /Users/admin/Documents/sourcemap/honeybadger-rails-webpacker-example/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
   unless you are using the `webpack -w` or the webpack-dev-server.
2. Webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your Webpack configuration is not creating a manifest.
Your manifest contains:
{
}

它适用于<%= javascript_pack_tag 'application' %>线

哪里可以成为我的问题?

ruby-on-rails ruby webpack
1个回答
4
投票

你在运行什么版本的Rails?你运行yarn install?这可能会解决它。

© www.soinside.com 2019 - 2024. All rights reserved.