I've tried many things to solve this issue. I'm trying to import from absolute paths defined on my tsconfig.json
on a file on my project I'm trying to use import { UserModel } from "model/User";
And on my tsconfig.json I have
{
....
"baseUrl": "src",
"paths": {
"model/*": ["model/*"]`
}
....
}
I've tried changing the baseUrl to ".", "./" and changing the paths as well, but I'm always getting the same error:
Error: Cannot find module 'model/User'
I have also tried to add an index.ts file to the model folder and export models from there, but still.. same issue. Any help is appreciated.