I am currently converting relative paths to absolute paths in my React-Native app and it triggers the following error: Error response to absolute import
And I have set up my tsconfig.json as follows:
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@buttons/*": ["src/components/buttons/*"]
},
"jsx": "react",
"resolveJsonModule": true
}
}
The following statement is how it looks in the file that I am importing it in:
import {CoreButton} from '@buttons/CoreButton';
Any ideas or suggestions would be amazing :)