Compiled code not found for this model Error in dbt UI After Running "dbt run --select model"

The problem I’m having

Compiled code not found for this model Error in dbt UI After Running dbt run --select model

I’ve encountered a consistent error when working with dbt UI. When I follow my usual workflow, I end up getting the compiled code not found for this model error after running any models. Here are the exact steps I took:

  1. Start the dbt documentation server: dbt docs serve
  2. Generate the documentation: dbt docs generate (At this step, there are no issues and the compiled code is visible in the UI)
  3. Execute the dbt run command. After this, the compiled code seems to disappear from the UI, leading to the aforementioned error.

Has anyone faced this before?

  1. Is this a known issue, and if so, what might be causing it?
  2. Are there any steps I might be missing or doing out of order that could lead to this?
  3. Any recommendations on how to prevent this from happening?

I appreciate any insights or suggestions you can provide. Thanks in advance!