Hello!
I am working on a pcf component which relies on a third party JavaScript Library called webdav.client.
I have installed the package via npm and the package seems to have typescript support (including a type declaration file/"index.d.ts" with an exported namespace)
Even though, the type is resolved correctly within visual studio code, I get an error during runtime.
I have imported the Package via the usual typscript import keyword:
import { ITHit } from 'webdav.client';
var webDavSession = new ITHit.WebDAV.Client.WebDavSession();
Like expected the types seem to be resolved correctly within the IDE.
During runtime, however, the library cannot be resolved, which leads to the error of WebDAV being undefined.
I assume that something gets lost during the transpilation-process, because the package can be resolved correctly when I remove the transpiled "webdav_client"-part and try to access the Library directly from the console (as can be seen in the attached screenshot).

I have tried severell ways to import this library, including the hacky way of downloading the actual code from git and importing the bundled javascript file directly:
import * as ITHit from './externalLibraries/webdav.client';
ithitLibrary:any=ITHit;
session= this.ithitLibrary.WebDAV.Client.WebDavSession;
I also tried to manually reference the types by referencing the project via the "compilerOptions/typeRoots"-property of the tsconfig-file but that also didn't help.
Did any of you experience the same problem or knows how to fix this issue?
thank you!