File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
from typing_extensions import Protocol , runtime_checkable
8
8
9
- from idom .types import RootComponentConstructor
9
+ from idom .core . types import RootComponentConstructor
10
10
11
11
12
12
_App = TypeVar ("_App" )
Original file line number Diff line number Diff line change @@ -117,8 +117,10 @@ def all_implementations() -> Iterator[BackendImplementation[Any]]:
117
117
"""Yield all available server implementations"""
118
118
for name in SUPPORTED_PACKAGES :
119
119
try :
120
- module = import_module (f"idom.server.{ name } " )
120
+ relative_import_name = f"{ __name__ .rsplit ('.' , 1 )[0 ]} .{ name } "
121
+ module = import_module (relative_import_name )
121
122
except ImportError : # pragma: no cover
123
+ logger .debug (f"Failed to import { name !r} " , exc_info = True )
122
124
continue
123
125
124
126
if not isinstance (module , BackendImplementation ):
You can’t perform that action at this time.
0 commit comments