Hello, i'm getting an error while importing my local package in one of the apps in my monorepo
Error: Cannot find module '@acme/lib/clients/FireBaseClient'
the project setup -
@root/
├── apps/
│ └── cdn/
│ ├── ...
│
└── packages/
└── lib/
├── ...
apps/cdn/tsconfig.json
{
"extends": "@acme/tsconfig/base.json",
"compilerOptions": {
"target": "es5",
"jsx": "preserve",
"outDir": "dist",
"resolveJsonModule": true,
},
"references": [
{
"path": "../../packages/lib"
}
],
"include": ["."],
"exclude": ["node_modules", "./dist"]
}
packages/lib/tsconfig.json
{
"extends": "@acme/tsconfig/base.json",
"compilerOptions": {
"lib": ["es2022"],
"module": "commonjs",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "dist",
"declaration": true,
"composite": true
},
"include": [".", "./config/*.json"],
"exclude": ["dist", "build", "lib", "node_modules"]
}
packages/lib/package.json
{
"name": "@acme/lib",
"version": "1.0.0",
"private": true,
"description": "external libs and utilites combined",
"author": "Oreki",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix"
},
"dependencies": {
"@google-cloud/storage": "^7.0.1",
"firebase-admin": "^11.10.1",
"lodash": "^4.17.21"
},
"devDependencies": {
"@acme/eslint": "workspace:^",
"@acme/prettier": "workspace:^",
"@acme/tsconfig": "workspace:^",
"@types/lodash": "^4.14.198",
"@types/node": "20.5.1",
"typescript": "5.1.6"
}
}
what could i be doing wrong