gentelella-rails icon indicating copy to clipboard operation
gentelella-rails copied to clipboard

Rails 6 webpack how include vendors?

Open galievruslan opened this issue 5 years ago • 1 comments

Hello I want to connect the gentelella template to my rails 6 project. The project is completely empty. Installed via yarn add gentelella. Further in the file app / javascript / packs / application.js added require ("gentelella") But when you open any page, it gives an error that Jquery is not connected. If I understand correctly all the dependencies should have been connected from the vendors folder but this did not happen, at least for rails 6 it works for a friend. Tell me how to properly connect all the dependencies so as not to install them manually.

galievruslan avatar Dec 12 '19 13:12 galievruslan

Can you verify that you're initializing jquery in your Rails 6 app per instructions in the gem's readme? https://github.com/rails/jquery-rails

mwlang avatar Dec 13 '19 16:12 mwlang