I'm creating OW app using Angular, but the OW script is only available in run-time, so I get a "cannot find" error

I’m building my plugin in Angular 6, and I’m trying to implement the overwolf events now. But it appears that the overwolf script is only available in runtime, so I get a “cannot find” error when I’m trying to build the app.

Do any of you have experience with this? If so, could you explain how you got passed this bump?

In general, remember being able to fix these kind of problems using the “declare” keyword.
For example, if there is a missing function that will be available later in run-time, you declare it like:

declare function postMessage(message: any, transfer?: any[]): void;

Most of the time these declarations come in a dependency that you download with a package manager like npm.