MacBook Pro 2019 - Catalina
I'm working on a create-react-app project which allows me to set an environment variable so instead of:
import { caseStudies } from '../../constants/containers/caseStudies';
I can simply write:
import { caseStudies } from 'constants/containers/caseStudies';
Which of course simplifies things a lot with not having to worry about paths so much.
However, right-clicking caseStudies and selecting Go to Definition, works on the first instance, but not the second, simplified instance.
I seem to remember this does work on Windows (haven't got a machine to check) so I'm wondering if it's a Mac problem?
Is there a solution for this?