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:
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).
Did any of you experience the same problem or knows how to fix this issue?


Report
All responses (
Answers (