Back to all questions

Why can VSCode not autoimport the Text component?

Last updated

Why is the Text component not automatically imported?

VSCode cannot automatically import the Text component because it confuses it with the native Text constructor, which always appears as the first type reference in the editor.

How can I import the Text component with VSCode?

To import the Mantine Text component, you need to manually select it from the list of suggestions (usually, it appears as the second option):

To learn more about VSCode IntelliSense and autoimport, visit the official documentation.