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

Bug: Inconsistent Webpacker watch behaviour #4327

Open
2 of 3 tasks
scheals opened this issue Jan 10, 2024 · 0 comments
Open
2 of 3 tasks

Bug: Inconsistent Webpacker watch behaviour #4327

scheals opened this issue Jan 10, 2024 · 0 comments
Labels
Status: Needs Review This issue/PR needs an initial or additional review Type: Bug Involves something that isn't working as intended

Comments

@scheals
Copy link
Contributor

scheals commented Jan 10, 2024

Checks

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this issue follows the Bug: brief description of bug format, e.g. Bug: Lesson complete button does not update on click
  • Would you like to work on this issue?

Bug description

For some reason, webpack (?) doesn't always refresh the CSS files that are changed. You can observe this by both applying changes that should change the styling or changes that should rise syntax errors. The way to get it back running is running bin/rails assets:clobber and perhaps bin/rails css:clobber - on my fresh VM running those once got it working on the app start right after and another after that. It worked after a reboot as well.

How to reproduce

  1. Set up the app and start it
  2. Do some changes in CSS, for example pagy.css - save the file
  3. Refresh the page that those CSS changes target
  4. Don't see the changes applied

Alternatively:

  1. Set up the app and start it
  2. Introduce syntax errors (adding random asdasdasd is good enough) into a CSS file, for example pagy.css - save the file
  3. Look into the terminal output and see no complaints as if it didn't watch the change

Expected behavior

  1. Set up the app and start it
  2. Do some changes in CSS, for example pagy.css - save the file
  3. Refresh the page that those CSS changes target
  4. See the changes applied

Alternatively:

  1. Set up the app and start it
  2. Introduce syntax errors (adding random asdasdasd is good enough) into a CSS file, for example pagy.css - save the file
  3. The terminal output complains about the syntax error

What browsers are you seeing the problem on?

No response

What OS are you using?

Ubuntu

Discord Name

No response

Additional Comments

No response

@scheals scheals added Status: Needs Review This issue/PR needs an initial or additional review Type: Bug Involves something that isn't working as intended labels Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Review This issue/PR needs an initial or additional review Type: Bug Involves something that isn't working as intended
Projects
Status: 📋 Backlog / Ideas
Development

No branches or pull requests

1 participant