You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> import idom
>>> from idom import component, html, run
>>>
>>>
>>> @component
... def App():
... return html.h1("Hello, ddWorld!")
...
>>>
>>> run(App)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/idom/server/prefab.py", line 58, in run
server = server_type(component, server_config, app)
File "/usr/local/lib/python3.9/site-packages/idom/server/sanic.py", line 74, in PerClientStateServer
return SanicServer(app)
File "/usr/local/lib/python3.9/site-packages/idom/server/sanic.py", line 111, in __init__
app.register_listener(self._server_did_start, "after_server_start")
AttributeError: 'Sanic' object has no attribute 'register_listener'
Activity