jspm / jQuery / TypeScript - module “jquery” has no default export

前端 未结 2 383
失恋的感觉
失恋的感觉 2021-02-05 04:13

I\'m trying to bootstrap a web app using TypeScript and jspm & system.js for module loading. I\'m not getting very far. After installing jspm, and using it to install jQuery

2条回答
  •  孤街浪徒
    2021-02-05 04:22

    When the module doesn't have a default export, you can import the complete module as object: import * as $ from "jquery";

    or import named exports: import { ajax, css } from "jquery";

提交回复
热议问题