Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alis-khadka opened this issue Sep 20, 2023 · 1 comment
Open

Comments

@alis-khadka
Copy link
Collaborator

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
Copy link
Collaborator Author

cc @Pralish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant