jspm / jQuery / TypeScript - Modul "jquery" hat keinen Standardexport
Ich versuche, eine Web-App mit TypeScript und jspm & system.js zum Laden von Modulen zu booten. Ich komme nicht sehr weit. Nach der Installation von jspm und der Verwendung zur Installation von jQuery:
jspm install jquery
Und die Grundlagen:
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
System.import('main');
</script>
main.ts:
import $ from "jquery";
export class Application {
constructor() {
console.log($);
}
}
Der TypeScript-Code wird nicht kompiliert, da "Modul 'jquery' keinen Standardexport hat.
Die generierte config.js hat die richtige Zuordnung: "jquery": "npm: [email protected]"