MainDirectory
|_bin
|_config
|_source > myfile.ts
I am currently learning about typescript and I am trying to reference a file located in a different folder. Specifically, I have created a new folder called Folder1 within the config directory, which contains a file named f1.py.
MainDirectory
|_bin
|_config
| |_Folder1 > f1.py
|_source > myfile.ts
When I move Folder1 directly under MainDir, this line in myfile.ts works:
const f1_path = 'Folder1';
However, when I try to use this line:
const f1_path = '../config/Folder1';
I encounter an error. Can you please advise on the most efficient way to achieve this? I have also experimented with imports but without success.