Getting NoneType does not support indexing on line 1 on an import from ._anvil_designer

This is happening when im running an app locally, the usual first line of any form looks like this: from ._anvil_designer import FormnameTemplate and mine seems to work for all forms but one where I get the error mentioned in the title, any ideas would be greatly appreciated

My first idea is to show us the lines of code that are involved. Odds are, there is an unintentional typo there.

sure thing,
its literally just this import when running in a container

from ._anvil_designer import Attenuator_UITemplate

Thanks! And does this actually match the name of the form, as shown in your App Navigation pane:
image
?

yes I can confirm it does

Ok, I’m stumped. I’ve had this happen at Design time, but never at run time.

A clone link might be useful here to get more context.

1 Like

here is a clone link to the problematic part of the app

I have deduced its an issue with the custom components.