Я пытаюсь объединить реакцию с рельсами для приложения hello world.Я следую (https://github.com/reactjs/react-rails) для учебника и застреваю, когда добавляю
<%= javascript_pack_tag 'application' %>
<%= react_component("Indexblog", { greeting: "Hello from react-rails." }) %>
к моему файлу просмотра.
Показ erorr:
Webpacker::Manifest::MissingEntryError in Homepage#welcome
Showing C:/Users/Hieu Vo/Desktop/simpleblog/myblogg/app/views/homepage/welcome.html.erb where line #4 raised:
Webpacker can't find application.js in C:/Users/Hieu Vo/Desktop/simpleblog/myblogg/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:
{
}
Кто-нибудь может мне помочь? Я очень стараюсь исследовать, но все еще не решаю свою проблему. Спасибо.