Webpacker::Manifest::MissingEntryError in Hello#index (ruby on rails) [英] Webpacker::Manifest::MissingEntryError in Hello#index ( ruby on rails)

查看:48
本文介绍了Webpacker::Manifest::MissingEntryError in Hello#index (ruby on rails)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了 Honeybadger webpack 示例 并运行 捆绑安装.

I have downloaded the Honeybadger webpack example and run bundle install.

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

I don't have any errors in terminal, yet get the following when I start my server:

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' %>

我的问题在哪里?

推荐答案

遇到了同样的问题.修正是:

Had the same problem. Fix was:

  1. 在控制台中运行bundle exec rails webpacker:install"以升级到最新版本的webpacker
  2. 发现我的节点版本 (8.6.0) 与当前版本的 webpack 不兼容
  3. 使用 NVM 升级到 Node 10.16.0
  4. 在控制台中重新运行bundle exec rails webpacker:install"(不确定是否有必要)

最后它开始工作了!

这篇关于Webpacker::Manifest::MissingEntryError in Hello#index (ruby on rails)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆