Webpacker::Manifest::MissingEntryError in Pioneers#index Error on Rails


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums Web Development Webpacker::Manifest::MissingEntryError in Pioneers#index Error on Rails
# 1  
Webpacker::Manifest::MissingEntryError in Pioneers#index Error on Rails

Good evening
I need your help please, Im a newbie at web applications and i am taking a course and i was struggling the web server to get to work
this is when the webeserver is up:
Code:
ubuntu@ubuntu-N53SV:~/hello_WWW$ rails server
=> Booting Puma
=> Rails 6.0.0 application starting in development 
=> Run `rails server --help` for more startup options
Puma starting in single mode...
* Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000

because rails use sql lite i typed the below commands to create a table and a schema:

Code:
rails generate scaffold pioneer first_name:string last_name:string
   rake db:migrate

everything was ok so far until i opened the browser and typed: http://localhost:3000/pionners it yield a lot of errors_

Code:
ActionView::Template::Error (Webpacker can't find application in /home/ubuntu/hello_WWW/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:
{
}
):
     6:     <%= csp_meta_tag %>
     7: 
     8:     <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
     9:     <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
    10:   </head>
    11: 
    12:   <body>
  
app/views/layouts/application.html.erb:9

In the Root directory of the application i searched all elements contain the word pioneer so :

Code:
ubuntu@ubuntu-N53SV:~/hello_WWW$ find ./ -name *pione*
./app/assets/stylesheets/pioneers.scss
./app/assets/stylesheets/pioners.scss
./app/views/pioneers
./app/views/pioneers/_pioneer.json.jbuilder
./app/views/pioners
./app/views/pioners/_pioner.json.jbuilder
./app/helpers/pioneers_helper.rb
./app/helpers/pioners_helper.rb
./app/models/pioner.rb
./app/models/pioneer.rb
./app/controllers/pioneers_controller.rb
./app/controllers/pioners_controller.rb
./db/migrate/20191201015729_create_pioneers.rb
./test/system/pioneers_test.rb
./test/system/pioners_test.rb
./test/fixtures/pioneers.yml
./test/fixtures/pioners.yml
./test/models/pioneer_test.rb
./test/models/pioner_test.rb
./test/controllers/pioners_controller_test.rb
./test/controllers/pioneers_controller_test.rb

Could you explain me what this error is about? or what did i do wrong? or give me a shed light all what this is about.
As i told you this is the first time i experiment it and whenever errors came up i dont know how to deal with or how to put out that fire

Thanks for your help in advanced
# 2  
You need to correctly set up webpacker first.

From your error message:

Code:
ActionView::Template::Error (Webpacker can't find application in /home/ubuntu/hello_WWW/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.

Until you resolve your webpacker configuration, you will continue to have issues.

If you use NPM (Node Package Manager), this will be easier for you, I think.

Last edited by hicksd8; 5 Days Ago at 09:03 AM..
# 3  
could you provide an useful link to display the instructions how to install and set up correctly my webpacker?

Thanks you very much for your support
# 4  
As mentioned, I think best to set up NPM first and use NPM to manage Webpacker and other JS apps.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #642
Difficulty: Easy
The first full release of NeXTSTEP 1.0 shipped on September 18, 1988.
True or False?

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sort from start index and end index in line

Hi All, I have a file (FileNames.txt) which contains the following data in it. $ cat FileNames.txt MYFILE17XXX208Sep191307.csv MYFILE19XXX208Sep192124.csv MYFILE20XXX208Sep192418.csv MYFILE22XXX208Sep193234.csv MYFILE21XXX208Sep193018.csv MYFILE24XXX208Sep194053.csv... (5 Replies)
Discussion started by: krish_indus
5 Replies

2. Solaris

SMF/Manifest in Zones

Hi.. I have an application installed in Zones and I would like to have the application started on every system reboot and stop at every shutdown. I created start/stop/restart script in /etc/init.d and placed S and K links in rc?d directories. This works fine. but I want to use SMF for this... (0 Replies)
Discussion started by: upengan78
0 Replies

3. Shell Programming and Scripting

Exporting CLASSPATH in manifest service file

Hi, I need the a help can please any one give me a suggestion for Exporting the CLASS PATH in service manifest file for Solaris 10 Here i have pasted the code <?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <!-- Copyright 2007 Sun... (4 Replies)
Discussion started by: Shreedhar Naik
4 Replies

4. UNIX for Dummies Questions & Answers

wh inode index starts from 1 unlike array index (0)

brothers why inode index starts from 1 unlike array inex which starts from 0 its a question from the design of unix operating system of maurice j.bach i need to know the answer urgently...someone help please (1 Reply)
Discussion started by: sairamdevotee
1 Replies

5. Filesystems, Disks and Memory

why the inode index of file system starts from 1 unlike array index(0)

why do inode indices starts from 1 unlike array indexes which starts from 0 its a question from "the design of unix operating system" of maurice j bach id be glad if i get to know the answer quickly :) (0 Replies)
Discussion started by: sairamdevotee
0 Replies

6. Solaris

SMF - Adding instances to existing manifest

I have a default, sun supplied, apache2 install on solaris10. It's running fine, everything's great. I'm looking to add another instance, fairly happy with how to do that apart from one thing - the SMF manifest. Can i just edit the XML file sun supplied for the default apache2 and add in details... (2 Replies)
Discussion started by: craigp84
2 Replies

Featured Tech Videos