I'm facing an issue with importing classes from one .ts file to another .ts file.
Here is the structure of my project:
https://i.sstatic.net/gZM57.png
I'm attempting to import print.ts into testing.ts
This is how my tsconfig.json appears:
https://i.sstatic.net/JbWcY.png
The contents of my testing.ts are:
import { names } from 'testing';
console.log(names.printFirstName());
The contents of my print.ts are:
class nameCollection {
static printFirstName(){
return 'OYEAAAH';
};
}
export {nameCollection as names};
I am executing my tests using:
node testing.js
But I encountered: https://i.sstatic.net/o4CN2.png
Appreciate any help!