A
A
Anton Sereda2021-07-22 02:13:48
phpstorm
Anton Sereda, 2021-07-22 02:13:48

Auto Import in PhpStorm not working (react-app), why?

I'm making a react application and creating a component that I export by default.

60f8a9c71c4e6295547207.png

Then I go to the parent component and add it to the layout, hoping that after adding it, auto import will work, but it does not see it.

60f8a9deb8e97172765450.png

If you do it in reverse order, that is, first import and then add to the component, then everything works, but auto-import is needed for this, in order to add oneself ...

PhpStorm settings are as follows

60f8a9f969ee4222589613.png
60f8aa021a844117132128.png

PS The same project in VS Code with the auto import plugin works out with a bang. Thanks in advance)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question