When I run my minimalist app, I get this :
New session: 19/11/2023, 22:46:09
ModuleNotFoundError: No module named 'None'
Not all modules are available in client code. Click for more info
Session ended: 19/11/2023, 22:46:14
How do I work out where the error is?
The app is just a portable class definition, nothing else. It’s designed purely to be included as a dependency.
I originally got the error in an app that included it as a dependency, but I get the same error if I just run the app directly. If that makes any sense?
This is the class :
import anvil.server
@anvil.server.portable_class("_Response")
class Response:
def __init__(self, status=999, data="", text=""):
self._status = status
self._data = data
self._text = text
@property
def status(self):
return self._status
@property
def data(self):
return self._data
@property
def text(self):
return self._text
The class is a WIP and just a placeholder really, but it works when included as part of the code in other apps (ie not as a dependency).