I'm facing an issue with importing classes from one .ts file to another .ts file.
Here is the structure of my project:
I'm attempting to import print.ts into testing.ts
This is how my tsconfig.json appears:
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:
Appreciate any help!