reflex-dev / reflex

🕸️ Web apps in pure Python 🐍

Home Page:https://reflex.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[REF-2602] if rxconfig.py is not importable reflex fails

masenf opened this issue · comments

Try to import a non-existant module in rxconfig.py and it will say

RuntimeError: Cannot get the app module because `app_name` is not set in rxconfig! If this error occurs in a reflex test case, ensure that `get_app` is mocked.

Instead of showing the ImportError. This is basically un-debuggable

  • If no config, tell them to init (should already be working)
  • need to catch on the get_config line and raise those exceptions

From SyncLinear.com | REF-2602

Facing the same issue with Reflex version 0.4.9