I have this tsconfig.json file with paths that I need to resolve in a certain way.
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"jsx": "react-native",
"lib": ["dom", "esnext"],
"moduleResolution": "node",
"noEmit": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"strict": true,
"noImplicitAny": false,
"baseUrl": "./",
"paths": {
"components/*": ["./app/components"],
"components/*/*": ["./app/components/*/index"], // This line does not work
"services/*": ["./app/services"],
"app/*": ["./app"],
"navigation/*": ["./app/navigation"],
"theme/*": ["./app/theme/*"]
}
}
}
The highlighted line is throwing this error:
Pattern 'components/*/*' can have at most one '*' character.
I tried every possible solution and I cannot find any single solution whatsoever. It seems impossible to even find the same error message somewhere on the internet. Any helpful suggestions would be massively appreciated.