However the compiler can't resolve .tsx files when using this alias. For e.g.
// src/components/folder/Component1.ts
import Component1 from '@app/components/folder/Component1'; // works fine
// src/components/folder/Component2.tsx
import Component2 from '@app/components/folder/Component2'; // can't resolve
Module not found: Can't resolve '@app/components/folder/Component2' in '/home/juzerzarif/Documents/test-project/src/components/navigation'
I have a path alias defined in my root directory as follows:
However the compiler can't resolve .tsx files when using this alias. For e.g.
Here's my config files: