Having some trouble setting up a web app with TypeScript and jspm & system.js for module loading. Progress is slow. After installing jspm and adding jQuery:
jspm install jquery
And the initial setup:
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
System.import('main');
</script>
Main.ts file looks like this:
import $ from "jquery";
export class Application {
constructor() {
console.log($);
}
}
The TypeScript compilation fails with error "Module 'jquery' has no default export.
The generated config.js shows correct mapping: "jquery": "npm:[email protected]"