# Aurelia-bootstrapper cannot resolve typescript shared library

**URL:** <https://discourse.aurelia.io/t/aurelia-bootstrapper-cannot-resolve-typescript-shared-library/3827>\
**Category:** Help Requests\
**Created:** [October 8, 2020, 1:26pm UTC](https://discourse.aurelia.io/t/aurelia-bootstrapper-cannot-resolve-typescript-shared-library/3827 "2020-10-08T13:26:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mreiche](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/mreiche/32/1912_2.png) [@mreiche](https://discourse.aurelia.io/u/mreiche)\
**Post date:** [October 8, 2020, 1:26pm UTC](https://discourse.aurelia.io/t/aurelia-bootstrapper-cannot-resolve-typescript-shared-library/3827/1 "2020-10-08T13:26:47Z")

</div>

I moved some code of Aurelia/Typescript services to a shared library and added it to the `tsconfig.json`

```auto
"paths": {
            "base-lib/*": ["../../base-lib/*"]
  }

```

The IDE (IntelliJ) is able to find and resolve the library in `main.ts`.

```auto
import {DurationFormatValueConverter} from 'base-lib/model-value-converters'

```

But Webpack/Aurelia not. When I try to run an build command, it fails with:

```auto
ERROR in ./src/main.ts
Module not found: Error: Can't resolve 'base-lib/model-value-converters' in 'C:\Users\xxx\myProject\src'
 @ ./src/main.ts
 @ ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
 @ multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper

```

I dont want to add the library via `npm install ../lib` because this has side-effects with webpack optimization I want to prevent.

---

<div class="post-metadata">

**Author:** ![mreiche](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/mreiche/32/1912_2.png) [@mreiche](https://discourse.aurelia.io/u/mreiche)\
**Post date:** [October 8, 2020, 1:58pm UTC](https://discourse.aurelia.io/t/aurelia-bootstrapper-cannot-resolve-typescript-shared-library/3827/2 "2020-10-08T13:58:51Z")

</div>

I found the problem and solution here: [https://github.com/aurelia/webpack-plugin/wiki/Debugging-missing-modules](https://github.com/aurelia/webpack-plugin/wiki/Debugging-missing-modules)

---

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [October 9, 2020, 1:06pm UTC](https://discourse.aurelia.io/t/aurelia-bootstrapper-cannot-resolve-typescript-shared-library/3827/3 "2020-10-09T13:06:24Z")

</div>

Glad that you found it 👍
