I have a library written in Kotlin that I want to use from an Angular Webapp written in TypeScript, but I end up getting Uncaught Error: Error loading module 'js'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'js'.
I did npm install --save kotlin
, but I'm not quite sure what to do with it, nor how to instatiate my RpnCalculatorService
.
I did <script src="assets/kotlin/kotlin.js"></script>
in my index.html, which works but feels very wrong, and import {RpnCalculatorService} from './MathLib/js';
doesn't yield any errors but I can't create a new service by calling new RpnCalculatorService()
.