I am trying to locally test 3 node modules by updating the locations they are being pulled from in their `package.json` files. The modules are `sdk`, `ng-widget-lib`, and `frontend`. `ng-widget-lib` depends on `sdk` and `frontend` depends on `ng-widget-lib`. I build `sdk` locally with `babel`. I'm running verdaccio as a local npm registry.

I update `ng-widget/package.json` (the name of the repo/root directory is `ng-widget` not `ng-widget-lib`) changing the name to `@locals/ng-widget-lib` and point the `sdk` dependency to the local `sdk` directory. Then run npm install and build with `ng build` which runs successfully. I then change the name in `dist/package.json` to `@locals/ng-widget-lib` and publish to my local registry.

In `frontend/package.json` I point the `ng-widget-lib` dependency to `@locals/ng-widget-lib` (I have tried pointing it to the local directory and not using the local registry but this still doesn't work). I run `npm install` which downloads the module from my local registry to `node_modules/@locals/ng-widget-lib` and creates a `package-lock.json` with `ng-widget-lib` pointing to the local registry. Then when I run `ng build --prod` or `ng build` it fails in the files where I'm importing `@locals/ng-widget-lib` with error

> 
> error TS2307: Cannot find module '@locals/ng-widget-lib'.
> 
> 
> 

I have deleted `node_modules` and run `npm cache clean --force` but still the same error. The `ng-widget-lib` and `frontend` use angular 8, `sdk` is typescript. I'm using npm 6.11.3

Here is my tsconfig.json

```
{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "module": "esnext",
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ]
  },
  "angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true
  }
}

```