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'
The text was updated successfully, but these errors were encountered:
It turns out that IDOM requires Sanic>19,<19.12. This is a slim range of versions because of this issue
Discussed in #674
Originally posted by gebrian0 February 16, 2022
The text was updated successfully, but these errors were encountered: