Back to all questions

Why VSCode cannot autoimport Text component?

Last updated

Why Text component is not automatically imported?

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

How can I import Text component with VSCode?

To import 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.