violet_rails icon indicating copy to clipboard operation
violet_rails copied to clipboard

Decouple application.js & cms.js and use only one pack file at a time

Open alis-khadka opened this issue 2 years ago • 1 comments

Describe the bug For the dashboard controller, we are including the cms.js as well as application.js file in here. Due to this, multiple dependencies like jquery, trix, turbo, rails-ujs, etc are being imported multiple times.

We need to decouple these cms.js and application.js file and use only one file at a time.

To Reproduce Steps to reproduce the behavior:

  1. Go to '/v2/dashboard'
  2. Open the developer tools' console
  3. See error

Expected behavior Such error should not occur

Screenshots

Screenshot 2023-09-20 at 11 18 03 PM

alis-khadka avatar Sep 20 '23 17:09 alis-khadka

cc @Pralish

alis-khadka avatar Sep 20 '23 17:09 alis-khadka