Search Hints library component - No module name '_anvildesigner'

I’m trying to use the SearchHints library component in my app, but when I add the component to my form I get the error:

The same error is appearing in the SearchHintsExample app that clones alongside the component.

I can see it relates to an import in the SearchHints component app, but this import doesn’t look any different to the first import in any of my working apps?

from ._anvil_designer import SearchHintsTemplate

Is this an issue I need to fix somehow, or has something changed in the ecosystem that has broken this component?

In your version of the clone of SearchHints
click the three dots on the forms
and select “Convert to package”

This does seem to be a bug in the designer (moved to bug reports)

if you do this for the both the forms, then you should see it render in your app

You might also like the autocomplete component in anvil extras

Thanks @stucork - convert to package worked.

I’ve been looking at the autocomplete component too actually :slight_smile: but I do have a couple of questions about how to best wire it up - what’s the best channel for those?

probably the anvil-extras discussion page

or a new thread here

1 Like