#Auto import index.astro

3 messages · Page 1 of 1 (latest)

charred pier
#

Auto import for components that have index.astro doesn't work.
For example: I have SelectBox/index.astro

I'm writing in a component <SelectBox...
This should auto suggestion( and import) SelectBox.

regal coralBOT
#

Hi @charred pier. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry, but the knowledge sources do not contain explicit information about auto-import or auto-suggestion for components with an index.astro file in Astro. There is no mention of built-in or official support for auto-importing components like SelectBox/index.astro when you type <SelectBox in another component, nor about IDE auto-suggestion behavior for this specific case.

If you are experiencing issues with auto-import or auto-suggestion in your editor, it may be related to your IDE or its Astro plugin, but the official documentation does not address this scenario directly. For more details or troubleshooting, you may want to check your IDE's extension documentation or open an issue with the Astro community.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: