File tree 1 file changed +8
-2
lines changed
src/py/reactpy/reactpy/backend
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
from typing import Any , NoReturn
7
7
8
8
from reactpy .backend .types import BackendImplementation
9
- from reactpy .backend .utils import all_implementations
9
+ from reactpy .backend .utils import SUPPORTED_PACKAGES , all_implementations
10
10
from reactpy .types import RootComponentConstructor
11
11
12
12
logger = getLogger (__name__ )
@@ -59,7 +59,13 @@ def _default_implementation() -> BackendImplementation[Any]:
59
59
implementation = next (all_implementations ())
60
60
except StopIteration : # nocov
61
61
logger .debug ("Backend implementation import failed" , exc_info = exc_info ())
62
- msg = "No built-in server implementation installed."
62
+ supported_backends = ", " .join (SUPPORTED_PACKAGES )
63
+ msg = (
64
+ "It seems you haven't installed a backend. To resolve this issue, "
65
+ "you can install a backend by running:\n \n "
66
+ '\033 [1mpip install "reactpy[starlette]"\033 [0m\n \n '
67
+ f"Other supported backends include: { supported_backends } ."
68
+ )
63
69
raise RuntimeError (msg ) from None
64
70
else :
65
71
_DEFAULT_IMPLEMENTATION = implementation
You can’t perform that action at this time.
0 commit comments