hi, i have a monorepo w multiple directores/services...
I'm importing a class from my libs high service into my frontend service.
The problem is, im getting type errors about the node modules from that libs directory... i.e it is not ignoring the node_modules folder from higher directories from whihc i import from.
My frontend ts.config:
{
"compilerOptions": {
"target": "ES2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "ES2020",
"moduleResolution": "node",
"maxNodeModuleJsDepth": 10000,
"resolveJsonModule": true,
"isolatedModules": true,
"types": [],
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"baseUrl": ".",
"paths": {
"@/*": ["/*"],
"@components": ["/components/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules", "../../libs/node_modules/*"]
}
My libs ts.config: