DOM.createElement is not a function when importing local library

I’m using a local library like

"dependencies": {
        "my-library": "file:../../my-library",
    },

Webpack and Typescript are compling just fine: Compiled successfully.
but on runtime, I get the following error:

Inner Error:
Message: aurelia_pal__WEBPACK_IMPORTED_MODULE_1__.DOM.createElement is not a function
Inner Error Stack:
TypeError: aurelia_pal__WEBPACK_IMPORTED_MODULE_1__.DOM.createElement is not a function
    at createElement (webpack-internal:///D1o4:4783:63)

Is it possible to add aurelia-pal to the imported module as well?

So if you remove that dependency… Everything runs fine?

Yes. It also runs fine, when I use the library from npm, not local filesystem.