In VSCode, auto imports are not correct on MacOS.
This is what I see when referring to an unimported module in VSCode.
However, the file path is incorrect. This path assumes that the file is located at the root of the project which is not true.
This is how the import from constants folder needs to be, and this is what VSCode adds:
According to my friend, this works perfectly on Ubuntu. I haven't added any special marketplace packages that give this feature, AFAIK.
What could be the problem?