I'm encountering an issue in my Nx monorepo when trying to import a local library.
Cannot find module '@juri/my-lib' or its corresponding type declarations.ts(2307)
apps/
gateway/
src/
main.ts <-- Importing from '@juri/my-lib' here
libs/
my-lib/
src/
lib/
my-lib.ts
src/
index.ts <-- Exporting from here
tsconfig.base.json
import { myLib } from '@juri/my-lib';
console.log(myLib());I want to be able to import myLib from @juri/my-lib across my apps without type/module errors.
Let me know if you need:
- My full
tsconfig.base.json - My
nx.jsonorproject.jsonsetup - Any extra logs
Thanks in advance 🙏