Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao renderizar o index

Webpacker::Manifest::MissingEntryError in Produtos#index

Showing /home/joaoeduardo/projetos/loja/app/views/layouts/application.html.erb where line #9 raised:

Webpacker can't find application in /home/joaoeduardo/projetos/loja/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: {

}

Analisei o erro acima e ŕpcurei na documentacao, e nao encontrei como recompilar o webpacker.yml

1 resposta
solução!

Solucao:

1 - reinstalei o yarn -> sudo pacman -S yarn

2 - bundle exec rails webpacker:install

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software