You are mixing webpack with yarn. The only use of yarn is to download javascript packages from https://yarnpkg.com/lang/en/ to your app's node_modules folder. Webpacker is a gem that uses Webpack which is an assets manager/packer solution similar (but with conceptually different approach) to Sprockets (known as the rails' assets pipeline). Both Webpack and Sprockets can use the node_modules folder to find the required files.
You can use webpacker or sprockets on rails projects, you can even use both at the same time, the only difference between rails 5 and 6 is that 5 defaults to sprockets and 6 defaults to webpacker *for new projects*. You don't *have* to migrate to webpack if you don't want to, you should be able to upgrade to rails 6 without using webpack and everything should work as before. Yarn won't create the /packs folder, webpacker should do that, maybe you didn't configure webpacker correctly or you didn't run the webpacker compiler. I suggest you follow the official webpacker guide to understand it https://github.com/rails/webpacker#installation El lun., 14 oct. 2019 a las 20:17, fugee ohu (<[email protected]>) escribió: > > > On Monday, October 14, 2019 at 6:50:53 PM UTC-4, Ariel Juodziukynas wrote: >> >> You shouldn't need to do that, you could use yarn to manage JavaScript >> dependencies with rails 5 too. Also the assets pipeline still works the >> same way with rails 6, only webpacker is the default now, but you can keep >> the old behaviour >> >> El lun., 14 oct. 2019 19:44, fugee ohu <[email protected]> escribió: >> >>> to upgrade an app to rails 6 i should run `yarn add <requirement>' for >>> everything that was listing as "//= require <requirement>" ? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Ruby on Rails: Talk" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/rubyonrails-talk/c28d3d35-5c90-4228-bdb6-236268bf5f09%40googlegroups.com >>> <https://groups.google.com/d/msgid/rubyonrails-talk/c28d3d35-5c90-4228-bdb6-236268bf5f09%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> > When I run yarn install it doesn't create a /public/packs folder and > that's the cause of my > Webpacker::Manifest::MissingEntryError error? Because the manifest file > isn't found? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/da0ad727-e0d7-4796-ba49-2c5fbe4a68c6%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-talk/da0ad727-e0d7-4796-ba49-2c5fbe4a68c6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcAc%2B7p8VBrh7P6j0FbNptWCkXXgWbhR%2BERKrm-31VFmaw%40mail.gmail.com.

